Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing in VB6

Status
Not open for further replies.

Keeper00

Programmer
Jul 17, 2003
13
US
I am trying to control the printing functions in VB6 by using the Vbprndlg.dll instead of the Commondialog for printing. The reason is the Commondialog changes the default printer if the user changes printers and so far the Vbprndlg.dll does not. The problem I am having is getting some of the options on the screen to be available, for example the Pages option. I have included code such as:

printDlg.Flags = VBPrinterConstants.cdlPDReturnDC _
Or VBPrinterConstants.cdlPDPageNums _
Or VBPrinterConstants.cdlPDAllPages

I was thinking that this will make them available, but it does not. Am I missing something? This example came from Microsoft at the Q322710 knowledgebase article.

Thanks in advance.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top