DEV Community

Cover image for Print PDF and Export Excel from RDLC in Asp.Net Core

Print PDF and Export Excel from RDLC in Asp.Net Core

Zoltan Halasz on December 03, 2020

This blog post is providing some more insight and the source code to a youtube tutorial, that I consider being worthwile looking at more closely. ...
Collapse
 
holgerkeller profile image
HolgerKeller

I have a Problem with 2 different report types in one application.
It works only with the report type that I call first.
For the second I got the following exception:

NullReferenceException: Object reference not set to an instance of an object.
AspNetCore.ReportingServices.ReportIntermediateFormat.Paragraph.SetExprHost(TextBoxExprHost textBoxExprHost, ObjectModelImpl reportObjectModel)

ReportProcessingException: An unexpected error occurred in Report Processing.
Object reference not set to an instance of an object.
AspNetCore.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)

I would really appreciate any idea.

Thanks

Collapse
 
lazar1389 profile image
Lazar1389

Could you manage to solve this? I Have the same problem, I lost months in solving it. THank you

Collapse
 
holgerkeller profile image
HolgerKeller

I moved to github.com/lkosson/reportviewercore.
It works fine.

Thread Thread
 
lazar1389 profile image
Lazar1389

Thanks for answering. If you have time to help, please send some call of .rdlc report using this "reportviewercore" package.. I am struggling with it. THanks!

Collapse
 
sachk1 profile image
Sachin Kulkarni

We are trying to use microsoft graphs in the rdlc report and getting error below
"Could not load file or assembly 'System.Windows.Forms. version=4.0.0.0. Culture=neutral, PublicKeyToken=b77a5c561934e089i. The system cannot find the file specified. "
Did anyone ran in this issue?

Thanks in Advance.

Collapse
 
elmoslem profile image
momen • Edited

Whast this Error => AspNetCore.Reporting.LocalProcessingException: 'An error occurred during local report processing.;An unexpected error occurred in Report Processing.
Index was outside the bounds of the array.'

Collapse
 
fj profile image
FelixJose28 • Edited

i have the same issue, well i have areound 7 rdlc files, if i run the application and execute any report that work fine, but when i try to execute another report then throw the following error: AspNetCore.Reporting.LocalProcessingException: An error occurred during local report processing.;An unexpected error occurred in Report Processing.
I have lost several days on this, I would appreciate if you help me with this

Collapse
 
k3ebs_ profile image
K|Ξ|ΞBS

So far this worked great for me. The only issue I ran into is I have External Images for one of my reports. I keep getting EnableExternalImages property has not been set for this report. I'm not sure if this is possible in this example.

Collapse
 
indraneelkurane profile image
Indraneel

Can this solution be deployed on Linux?

Collapse
 
zoltanhalasz profile image
Zoltan Halasz

I didn't try it. I heard some doubts. You can try it though.

Collapse
 
mansoorlive profile image
mansoorlive

Can't This Project Work On .Net 6.0 Framework?

Collapse
 
mohamed351 profile image
Mohamed Beshri Amer

sometimes it throws an exception
github.com/amh1979/AspNetCore.Repo...

Collapse
 
egrojeic profile image
Jorge Eduardo Isaza

Hey great job, thanks. Have you seen an issue with external images?