Nanni Level: Trainee
 Registered: 21-01-2005 Posts: 1
|
Printer Collate flag visual basic
Hello
My name is Nanni.Sorry for english j'm Italian.
J have a problem with visual basic and collate flags from
printer dialog.
My system is Windows 2000 sp4,Vb6 sp6.
J use Vbprndlg.dll for calling printer dialog.
J tried also with standard commondialog, but is the same.
J'm unable to retrieve setting for collate flags.
This a part of code:
PrintDlg.flags = VBPrinterConstants.cdlPDPageNums _
Or VBPrinterConstants.cdlPDReturnDC _
Or VBPrinterConstants.cdlPDNoSelection
If (PrintDlg.flags And VBPrinterConstants.cdlPDPrintToFile) = _
VBPrinterConstants.cdlPDPrintToFile Then
Debug.Print "Print to File Selected"
Else
Debug.Print "Print to File Not Selected"
End If
This work for print to file
This don't work for collate
If (PrintDlg.flags And VBPrinterConstants.cdlPDCollate) = _
VBPrinterConstants.cdlPDCollate Then Debug.Print "collateSelected"
Please help me for this problem.
Thanks for your Time
Best regards
Nanni
|