Could not find a part of the path

Stimulsoft Reports.NET discussion
Post Reply
ToolHound
Posts: 4
Joined: Fri Feb 13, 2009 6:27 pm
Location: Canada

Could not find a part of the path

Post by ToolHound »

A couple of our users have recently been getting this error when printing a report. Was working fine and doesn't happen every time.

What could be causing this?

Attachments
1136.Error.png
1136.Error.png (101.24 KiB) Viewed 1034 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Could not find a part of the path

Post by Alex K. »

Hello,

When compiling, a temporary assembly file is created. It seems you have some problems with access to the file/folder. Please try, before you print the report, to manually compile it using the code:

Code: Select all

StiReport mainreport = new StiReport();
mainreport.Compile();
mainreport.Render(false);
mainreport.Print();
if it does not help, please try to change the command:

Code: Select all

mainreport.Compile(pathString);
where the pathString is a path to a temporary assembly file in a folder to which access is guaranteed and the name of the file should be created at random.

Thank you.
Post Reply