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.

Thu Feb 09, 2023 9:03 pm

I'm having issue with FreeSpire.PDF printing a PDF that I generate from SSRS for a website.

There are actually two reports that I will be printing.

One of the pdfs that is generated is a Label. This pdf prints very quickly.

The second PDF is more of an invoice. The report uses a 'Table' component to list out all of the items for an invoice.

The second PDF isn't that much bigger than the label, but it just won't print fast. It usually takes well over 5 minutes and the web application eventually just stops working.

There's nothing complicated with the code:

Code: Select all
            PdfDocument doc = new PdfDocument();

            try
            {
                doc.LoadFromFile(_filePath);

                doc.PrintSettings.PrinterName = _currentPrinter.PrinterName;

                doc.Print();

                _printingSuccessful = true;
            }



I just take the file path to the pdf that is created, and send it to the named printer.

For the Label, this works perfectly. For the invoice......not so much.

Any thoughts?

I'm using the Freespire.PDF library from Nuget. This is running from a C# Blazor server application.

Any help would be appreciated!

aehlert01
 
Posts: 1
Joined: Thu Feb 09, 2023 3:17 pm

Fri Feb 10, 2023 2:48 am

Hi,

Thanks for your inquiry.
Could you please provide us with your input documents to help us do a further investigation? We will test the scenario and update it accordingly. You can send them to us via email ([email protected]) or attach them here. Thanks for your assistance. In addition, you can try to print your documents using our latest Spire.PDF commercial version (https://www.e-iceblue.com/Download/download-pdf-for-net-now.html), which is more powerful and stable, we are willing to provide you with a temporary license (one month free) to help you evaluate it better.

Sincerely,
Triste
E-iceblue support team
User avatar

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

Return to Spire.PDF