toddja00 Posted March 17, 2005 Posted March 17, 2005 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 Quote
mskeel Posted March 18, 2005 Posted March 18, 2005 I would start by investigating the PrintDialog Class. I haven't used it before, but it looks promising. MSDN on PrintDialog Control Quote
Ieuan Posted June 9, 2005 Posted June 9, 2005 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... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.