I am a real estate appraiser and have limited experience with vb and .net. I have a task that I perform, which requires me to go to the conuty appraisers website and print a copy (for a BMP or JPG image or directly on the default printer) of the current public record information anywhere from a few pages to 1000 plus records at a time.
I really do not get paid for this part of the work, so they do not care, it takes several minutes or several hours to do this. I thought there should be a way to automate this process, so last week I started searching and testing code snippets.
What I have today opens up an instance of IE; moves to the registered page; finds elemet form for AcctNo; Fill it out and submit the form. The returned page is formatted for screen presentation and is not suitable for sending to a printer. However, there is a link that, when clicked, returns a page formatted for pinting. A print dialog box is also displayed at the bottom, which then needs to be processed. I managed to press the Print button or the Cancel button in several ways, which leaves me with a document that either goes to the printer or sits on the screen.
Questions:
Is there a way to do this without displaying the Print dialog box? Maybe HTTPRequest or HTTPWebREquest, since I don't need to see the screens just need the last page.
The resulting page is usually longer than the letter in several lines and wants to print on two pages. It would be nice to resize the page to fit, and usually it will be the same resize.
If I stick to the print dialog by clicking the Print or Cancel button, how can I intercept the document and decide using the options set in the program to send the file to the printer or save the image?
/ li>
I am sure that I work too much to do this, and thought there was someone who could answer it in a second, while I spent most of 3 days trying to figure it out.
I like to decide how to make up tags, therefore, pointing to a class or some website, we highly appreciate it, but the sample code is useful, because I am not an experienced programmer and basically take examples and change them according to my needs.
thanks
source share