Problem with GetReportFromAssembly

Stimulsoft Reports.NET discussion
Post Reply
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Problem with GetReportFromAssembly

Post by Stephan1 »

Hi,

i got a problem using GetReportFromAssembly.

We're using the following code to lode a report from assembly:

Dim fname As String = "C:\Rptsample_DS.mrt"
m_StiReport = StiReport.GetReportFromAssembly(fname, True)

When using the variable i allways get an error:

"file:///C:\RptSample_DS" oder eine Abhängigkeit davon wurde nicht gefunden. Im Modul wurde ein Assemblymanifest erwartet.

It seems that when using the variable fname it allways put a "FILE:///" in front of the filename.

When using the Filename directly it works fine. Problem is we need to use a variable cause of different filenames etc.

m_StiReport = StiReport.GetReportFromAssembly("C:\Rptsample_DS.mrt", True) --> this works fine. But why not whit the fname variable ?


thx for helping

Stephan

Ok I found the solution allready, it was just a typing error. instead of loading the .DLL i try loading the .MRT which is incorrect.


Thx anyway


Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with GetReportFromAssembly

Post by Edward »

Hi Stephan,
Ok I found the solution allready, it was just a typing error. instead of loading the .DLL i try loading the .MRT which is incorrect.
No problem, let us know if you need any help.

Thank you.
Post Reply