Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi I was wondering if there was a way to print external documents such as .doc or .pdf files from vb.net. I would like to use the regular print dialog window that you get if you print from programs such as internet explorer or word. I need this because I work at a small business where I print massive quantaties of documents and need the copies option. I haven't programmed for at least 5 years so I am kind of rusty at this.

 

Thanks

  • 2 months later...
Posted

Try This:

 

On your Microsoft Word, under tool menu, then record macro... then open any .doc file, then print... under tool menu again stop recording.... then try openning the macro you have recorded, then you can see how vba code for Microsoft word in openning and printing...

 

In VB.Net, ('i've never tried this vb.net, but in previous vb, i've done a quite sometimes but not with Microsoft word, perhaps in Microsft Excel.) Add the .dll or .tlb (not sure!) Microsoft Word into your reference. then Create Object for word, then etc., etc....

 

I'm not sure about this, just try it...

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...