Tinygoldwing Posted April 20, 2023 Share Posted April 20, 2023 I have a editor where a person changes a letter and clicks print. Print saves the letter to a html file and then I call to print() which open the document for printing but it leave the window open. UniSession.AddJS('window.open("/Files/Docs/GiftLetters/GiftLetter'+inttostr(rptcnt)+'.html", "_blank", "scrollbars=yes,resizable=yes,width=900,height=700").print();'); So my question is can I open the print dialog box on the html code that's in my UniURLFrame Or maybe a way to print the same letter in a dialog box in my app? Thanks, Ed Quote Link to comment Share on other sites More sharing options...
Tinygoldwing Posted April 20, 2023 Author Share Posted April 20, 2023 Figured it out. Print with: UniURLFrame1.JSInterface.JSCall('iframe.contentWindow.print', []); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.