Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Select printer tray
  FAQ FAQ  Forum Search   Register Register  Login Login

Select printer tray

 Post Reply Post Reply
Author
Message
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Topic: Select printer tray
    Posted: 12 Jan 12 at 10:23AM
Good morning.

I'm testing your demo dll.
Now i have this problem........
I'm try to use a 2 drawers printer on my network.
One is for A5 paper and the other is for A4 paper.

I would like to know if is possible during printig (function PRINTDOCUMENT, to select the correct tray (in my case the 2nd .... A4) 

thank you in advance
best regards

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 11:00AM
Back to Top
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 1:41PM
thank you for your answer.

Can i found some vb.net example ????

thanks
regards


Back to Top
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 2:06PM
I understand now...... but

this is my code:

    QP.LoadFromFile(filename, "")
            CustomPrinter = QP.NewCustomPrinter("\\server name\printer name")
            QP.SetupCustomPrinter(CustomPrinter, 9, 5)
            PrintOption = QP.PrintOptions(0, 0, "Test")
            QP.PrintDocument(CustomPrinter, 1, 1, PrintOption)

during printdocument i have an error.
and if i look inside CustomPrinter the value is "3 

customprinter is defined like string 

thanks
Regards

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 2:10PM

            QP.LoadFromFile("PrintDocumentTest.pdf", "");

            int op = QP.PrintOptions(1, 0, "My QPL PrintJob");

            string printer = QP.NewCustomPrinter(QP.GetDefaultPrinterName());

            int ret;

            ret = QP.SetupCustomPrinter(printer, 6, 1);  // Colour = Monochrome

            // see this link for other paper sizes.
            // http://www.quickpdflibrary.com/faq/what-paper-size-values-can-be-used-with-the-setupcustomprinter-function.php

            ret = QP.SetupCustomPrinter(printer, 9, 13);  // PaperTray = DMPAPER_B5

            ret = QP.PrintDocument(printer, 1, QP.PageCount(), op);

Back to Top
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 2:13PM
thanks but here

Return dll.QuickPDFPrintDocument(instanceID, PrinterName, StartPage, EndPage, _
                    Options)

i have an error.

and printername = "2

.............

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 2:13PM

You need to choose your printer name from list created with QP.GetPrinterNames(); or QP.GetLatestPrinterNames().

Andrew


Back to Top
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 2:35PM
ok..........
and if i want to use a particular printer ???

how can i get via getprinternames ???

thanks.
Alberto.


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jan 12 at 7:23PM
Hi Alberto!

You should read in the online-reference here:
GetPrinterNames
http://www.quickpdflibrary.com/help/quickpdf/GetPrinterNames.php
NewCustomPrinter
http://www.quickpdflibrary.com/help/quickpdf/NewCustomPrinter.php
PrintDocument
http://www.quickpdflibrary.com/help/quickpdf/PrintDocument.php
Take the printername from the csv-list and insert it into PrintDocument.

Cheers and welcome here,
Ingo


Back to Top
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jan 12 at 10:04AM
thank you for your answer............

i'm testing latest version and everything work fine !!!!!!


Back to Top
Alberto View Drop Down
Beginner
Beginner


Joined: 12 Jan 12
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alberto Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jan 12 at 11:07AM
Perfect !!!!!!!!!!!
Everything work good !!!!!!!

thank you for your support......

regards
Alberto.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store