Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Nov 07, 2023 6:04 pm

i need print Booklet every four papers are in a separate file and Duplex it

Code: Select all
 PdfDocument PDFdoc = new PdfDocument();
            PDFdoc.LoadFromFile(myPath);

                PDFdoc.PrintSettings.SelectBookletLayout(PdfBookletSubsetMode.BothSides, PdfBookletBindingMode.Right);
               
                PDFdoc.PrintSettings.PrinterName = PrinterName;
                PDFdoc.PrintSettings.Color = false;

            for (int i = 0; i < datagridview .Rows.Count; i++)
            {
                int FromPage = int.Parse(datagridview .Rows[i].Cells[0].Value.ToString());
                int ToPage = int.Parse(datagridview .Rows[i].Cells[1].Value.ToString());

                PDFdoc.PrintSettings.SelectPageRange(FromPage, ToPage);
       
                PDFdoc.Print();

            }

jackSoid
 
Posts: 2
Joined: Sun Nov 05, 2023 4:38 pm

Wed Nov 08, 2023 9:45 am

Hi,

Thank you for reaching out regarding your printing issue. I have reviewed your code, and it appears to be correct. However, in order to assist you further, could you please provide more details about the specific problem you are experiencing?

By providing additional information, I will be able to better understand your situation and offer appropriate solutions or suggestions to resolve the problem. I appreciate your cooperation and look forward to assisting you further.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Wed Nov 08, 2023 2:05 pm

I need to print Duplex Booklet page from List Like

from - to
1 - 4
5 - 8
9 - 12

in second row from page 5 to 8 i got this error message
Index was out of range. Must be non-negative and less than the size of the collection.

How can I print specific pages individually Booklet and Duplex

jackSoid
 
Posts: 2
Joined: Sun Nov 05, 2023 4:38 pm

Thu Nov 09, 2023 9:17 am

Hi,

Thanks for your feedback.
I have discussed this matter with our development team, and we have identified a specific problem in our product related to booklet printing.

I have logged this issue in our issue tracking system with the ticket number SPIREPDF-6393. Our development team will investigate the cause of the problem and work towards resolving it. Rest assured that once the issue is fixed, I will promptly notify you

We apologize for any inconvenience this may have caused and appreciate your patience as we address this matter. Should you have any further questions or require additional assistance, please feel free to let me know.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Fri Dec 08, 2023 9:39 am

Hi,

Thanks for your feedback.
Glad to inform you that we just released Spire.PDF 9.12 hotfix, which has fixed the issue SPIREPDF-6393, please download from the following links and have a test.
Website: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget: https://www.nuget.org/packages/Spire.PDF/9.12.0

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF