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
77 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pdf to excel 8 85
One computer out of ten prints magenta color instead of gray in Adobe Acrobat Pro 2 48
fillable forms on website 2 40
What are MicroServices? 4 65
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

738 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