Solved

SSRS printing report to PDF causes following error: Object reference not set to an instance of an object.

Posted on 2014-12-23
2
54 Views
Last Modified: 2016-06-21
Hi I get an error when rendering report to PDF. Only happens I select all my selected groups in the filter. Appears some data somewhere is causing an issue when rendering report to PDF.

See screenshot of error
C--Users-craig.mason.METHODWARELOCAL-Doc
Can you please let me know how I can locate the problem?
0
Comment
Question by:Papa1NZ
2 Comments
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 500 total points
ID: 40526932
generally one of the objects in your code is null.

need to put a break point on code before the error occurs,
run the app using the data selections that cause the error and then step through each line , checking each variable to get its value.

particularly, check all the values in the urlQuery NameValueCollection
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now