Hello! I've run into a huge problem which I can't seem to solve.
I've made an application in C# with a webbrowser that automatically browses several different pages on our internal website. I need my application to be able to either save each page or print each page to a PDF (like with CutePDF, PDFcreator) and
set the filename & destination from code. All this without any user interaction - it's kind of a bot to do stuff for us.
I've tried all of the following:
urlDownloadToFile - does not work in this scenario because the URL's that my application goes to are not "real" URL's, as in if you copy & paste the URL to a webbrowser you get re-directed to the home page instead. The pages my application
visits are reports generated by setting some values.
EnumWindows & SendMessage - Tried to locate the Save As-dialog and simulate clicks on the Save-button. Spent two days trying to get this to work but I could not. I am a low level programmer who's learning. (=
iTextSharp - Tried to make iTextSharp generate a PDF from the HTML of webbrowser - I failed on this aswell.
I really need the pages visited printed/saved automatically! If someone can provide guidance & code I would be eternally thankful.
Note: Found other threads kinda si
View Complete Post