Print WebPage without using SendKeys in openspan. what is the usage of PrintDocument and PrintDialog and how to use these controls
I want to print complete webpage and save it into local machine using openspan controls. i have achieved with Sendkeys in form level but it fails when we lock the machine.
need some suggestion how to achieve the print functionality. i found some controls like PrintDocument and PrintDialog but don't know how it will work. I also researched about Print Method but i din't find this in Configure Type.
Please provide some guidance to resolve the issue
Thanks in Advance !
Share this page
Moderation Team has archived post,
This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.
Try interrogating the gear icon on the IE browser and then generate the menu items and select File -> Save As...
I have not tried this in a locked machine but perhaps it will work. PrintDocument and PrintDialog are C# components. Review Microsoft's documentation for more information on these but I don't think these components will do what you are looking for.
Some controls are not available (particularly with Microsoft products) when the machine is locked. The applications simply do not create them when they know the machine is locked. This makes it impossible to automate the same steps a user would take, because they do not operate with their screens locked. SendKeys will never work when the screen is locked, and should only be used as a last resort.