Need help
Posted: Fri Jan 28, 2011 4:15 am
Hello,
I believe that this problem is not strictly related to StimulSoft Reports but you are the best one I could ask so please help me.
My application are still produced in WIN32 environment so I made Assembly to connect with StiReport. This assembly works with no problems if I put my application and all needed dll's on local drive but if I put the very same folder with no changes at all on network drive and run application from that network folder than my application always GPF. If StiReport.Net was installed on that PC (it may be some older version, not current that I am using now) than application works and reports are Ok.
I made little investigation and found that this example procedure not run at all:
[ExportDllAttribute.ExportDll("StiResetReport",System.Runtime.InteropServices.CallingConvention.Cdecl)]
public static void ResetReport()
{
MessageBox.Show("StiResetReport PRE Load");
StiConfig.Load();
MessageBox.Show("StiResetReport PRE Services");
Stimulsoft.Base.Services.StiService aa = Stimulsoft.Report.StiConfig.Services.GetService(typeof(Stimulsoft.Report.Components.StiText));
MessageBox.Show("StiResetReport PRE New Report");
report = new StiReport();
MessageBox.Show("StiResetReport PRE StiConfig.Load");
Stimulsoft.Report.StiConfig.Load();
}
This Messages in this function are here only for debugging purpose.
Why is this difference? What did I miss?
Regards,
Dikan
I believe that this problem is not strictly related to StimulSoft Reports but you are the best one I could ask so please help me.
My application are still produced in WIN32 environment so I made Assembly to connect with StiReport. This assembly works with no problems if I put my application and all needed dll's on local drive but if I put the very same folder with no changes at all on network drive and run application from that network folder than my application always GPF. If StiReport.Net was installed on that PC (it may be some older version, not current that I am using now) than application works and reports are Ok.
I made little investigation and found that this example procedure not run at all:
[ExportDllAttribute.ExportDll("StiResetReport",System.Runtime.InteropServices.CallingConvention.Cdecl)]
public static void ResetReport()
{
MessageBox.Show("StiResetReport PRE Load");
StiConfig.Load();
MessageBox.Show("StiResetReport PRE Services");
Stimulsoft.Base.Services.StiService aa = Stimulsoft.Report.StiConfig.Services.GetService(typeof(Stimulsoft.Report.Components.StiText));
MessageBox.Show("StiResetReport PRE New Report");
report = new StiReport();
MessageBox.Show("StiResetReport PRE StiConfig.Load");
Stimulsoft.Report.StiConfig.Load();
}
This Messages in this function are here only for debugging purpose.
Why is this difference? What did I miss?
Regards,
Dikan