×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Printing Web Pages

Printing Web Pages

Printing Web Pages

(OP)
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.

RE: Printing Web Pages

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close