Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Web Pages

Status
Not open for further replies.

CamaroLT

Programmer
Dec 16, 2002
159
CA
Realizing that this is not exactly the most correct area to post this question, I really wasn't able to find anything better.

I'm just finishing up a lil' DB program written under Delphi 7. The app pulls information from a database, and then exports the information into an HTML file of which can later be printed. (The whole purpose of the HTML page is so I didn't have to put the images on the page directly)

Question I have is, either by using the ShellAPI routines, or some other method, anyone got an idea on how I can print the HTML page? I'd prefer to bring up the print options first. I know theres a ShellExecute I can use, but, I can't remember, nor have I been able to find it anywhere on the net. :/

Thanks in advance.
 
Nothing like finding the answer to your question the very next web page you go to.

rundll32.exe C:\WINNT\System32\mshtml.dll,PrintHTML "%1" "%2" "%3" "%4"

I don't think that's going to bring up the dialog to select the printers, etc, but, it'll do.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top