Print Page | Close Window

Print setup problem - Common Dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14702
Printed Date: 04 July 2024 at 7:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Print setup problem - Common Dialog
Posted By: joeliner
Subject: Print setup problem - Common Dialog
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: joeliner
Date 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


Posted By: Baldur
Date 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 !



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net