borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (I don't know any thing about printing!!How can i print a simple text??)Next Topic (VB Report) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Printer Collate flag visual basic
Poster Message
Nanni
Level: Trainee

Registered: 21-01-2005
Posts: 1

icon 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

21-01-2005 at 10:39 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : Printer Collate flag visual basic
Previous Topic (I don't know any thing about printing!!How can i print a simple text??)Next Topic (VB Report) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder