Print setup problem - Common Dialog |
Post Reply |
Author | |
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Posted: 08 July 2009 at 3:14am |
Hi,
Am trying to use this code to change the printsetup. Apparently, it works with MSCommonDialog. something am doing wrong? With CommonDialog '.Flags = xtpPDPrintSetup .DialogTitle = "Print Setup" .CancelError = True .ShowPrinter End With regards, |
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
So what problem do you see ? You just don't see print dialog ? Do you have some printer installed ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
Hi,
I do have printers installed. The problem is with changing the default printer. on Showprinter, the print setup dialog shows. so, i select the printer and click on 'ok'. The default printer is not changed to the one selected. When i re-open the Print setup dialog no change has been done. Unlike MSCdialog, the application will look like it hangs for a sec when i click on 'ok' and when i re-open print setup the selected printer is now the default printer. |
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
This is a problem of VB6 himself.
You must change the Default-Printer by yourself.
If you use the VB6-Commoncontrols, that are wrapper-classes for the Windows-Common-Controls so they do something more for you.
CJ simply call the windows-common-controls and knows nothing about VB6.
PS:
The changing of the defaultprinter with VB6 effects ALL Applications and sets the Windows-Default-Printer !
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |