This is a migrated thread and some comments may be shown as answers.

Black block or complete failure to print pdf

1 Answer 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 04 Jul 2012, 10:45 AM
Hi

I have created a couple of reports using Telerik reports. All looked good so we have emailed them to customers.

Customers have replied saying that when they print them they get big black boxes or failure to print messages.

The customers are using Adobe but we have also found version 4 of foxit pdf reader has issues as well. The latest version of Foxit does print the reports.

The code is below that produces the pdf 

   
Dim rptContract As New rptSinglePageContract
        Dim rptProcessor As New Telerik.Reporting.Processing.ReportProcessor
        Dim Contract() As Byte
        rptContract.reportHeader.ConnectionString = GetSQLConnectionString()
        rptContract.reportDetails.ConnectionString = GetSQLConnectionString()
 
        rptContract.ReportParameters("ID").Value = m_contract.ID
        Contract = rptProcessor.RenderReport("PDF", rptContract, Nothing).DocumentBytes
 
        If printersettings.PrinterName <> "" Then
            rptProcessor.PrintReport(rptContract, printersettings)
        End If
 
            IO.File.WriteAllBytes(outputcontractfilename, Contract)

I would have attached examples that you can print yourself to check but .pdf are not accepted. You can get them here http://dropcanvas.com/j10vd

What am I doing wrong? Obviously sending documents to customers that cannot be printed is not acceptable.
Cheers

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Jul 2012, 08:26 AM
Hello,

When I try to open your PDF files I get the error "Insufficient data for an image" in Acrobat Reader. Quick search on the net shows this to be an issue when a 24 bit image is saved as 8 bit one. Please, check whether this is the problem in your case and if necessary modify the images.

You may find useful these two threads from the Adobe Forums:

Hope this helps.

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Simon
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or