Click to See Complete Forum and Search --> : How to with PrintDocument Control
bdw71
June 17th, 2002, 02:17 PM
Does anyone know how to print say a Word Document or Web Page from a VB interface. In other words being able to control printing from a VB program. I'm trying to see if there is a way to pass another application (word, IE) as a parameter to the PrintDocument Control. Any help would be appreciated.
MoonNight
January 16th, 2003, 02:42 PM
I am trying to do something like this too. Did you find any solution to your problem? Any help or links would be appreciated.
Moon
DSJ
January 16th, 2003, 03:15 PM
I'd use the ShellExecute API call.
Dozo_1st
July 15th, 2003, 08:10 AM
If u would like to print a WordDocument, why not try:
oDocument = oWord.ActiveDocument
oDocument.PrintOut(Background:=False)
et voilá
D.
:D
gitter1226
August 15th, 2005, 02:55 PM
For complete documentation from MSDN on how to do as Dozo suggests, check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_VBNETcallsVBA.asp
Or at msdn.microsoft.com/library navigate to :
Office Solutions Development ->Microsoft Office 2003->Office 2003->Technical Articles
Check out the Calling Visual Basic for Apps Code from VB .NET article. Everything you need is there...
HTH anyone else with similar problems.
Jeff
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.