Friday, 23 August 2013

How to access to file in a separated assembly?

How to access to file in a separated assembly?

I have a project that i put my reports files into it,now i want to
refrence them in another ptoject,i tried this code:
StiReport.Load(new
Uri("pack://application:,/GoldAccountingSystem.Reports;component/StimulReports/TBank.mrt")
.LocalPath);
but i get this error:
Could not find a part of the path
'E:\GoldAccountingSystem.Reports;component\StimulReports\TBank.mrt'.
GoldAccountingSystem.Reports is the assembly name of report,but idon't
know why it's lookinh in E for this assembly although the right address is
E:\Projects\GoldAccountingSystem\GoldAccountingSystem.Reports.
any idea?

No comments:

Post a Comment