Jump to content

Programmatically print HTML file / web page


Recommended Posts

I'm trying to print out a webpage programmatically, without the user having to do anything (and hopefully, not even see anything). I've tried using the ActiveX container to load a page, but when I try to print, I get an error (see ActiveXPrintWebpage.vi). I've also looked into using the .NET container, which is a bit more complicated, but I've had no luck there as I don't quite understand how it works. The third idea I had was to invoke a browser using the command line, but I don't know how to send in a command to print.

Any ideas?

Link to comment
  • 5 months later...

QUOTE (jakestern @ May 30 2008, 05:01 PM)

I'm trying to print out a webpage programmatically, without the user having to do anything (and hopefully, not even see anything). I've tried using the ActiveX container to load a page, but when I try to print, I get an error (see ActiveXPrintWebpage.vi). I've also looked into using the .NET container, which is a bit more complicated, but I've had no luck there as I don't quite understand how it works. The third idea I had was to invoke a browser using the command line, but I don't know how to send in a command to print.

Any ideas?

I think this is what you want

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.