Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Print setup problem - Common Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Print setup problem - Common Dialog

 Post Reply Post Reply
Author
Message
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Topic: Print setup problem - Common Dialog
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2009 at 3:43am
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
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2009 at 3:57am
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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 10:12am
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 !
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.