In my module I'm trying to open the plain Chrome print dialog - like pressing Ctrl+P (unsucsessfully)!?
Tried: 1. <img onclick=""onclick="window.focus();" window.print="" /><br /> 2. asp:button + javascript and then assigning in codebehind: Print.OnClientClick = "printdlg" 3. button + code on click event: ScriptManager.RegisterClientScriptBlock(Me, GetType(Page), UniqueID, "window.print();", True)
... and nothing works.
Any ideas anyone?
nevermind, feel so stupid now :)
Print.OnClientClick = "javascript:window.print()"
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.