Need help

Stimulsoft Reports.NET discussion
Post Reply
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Need help

Post by dikan »

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
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Need help

Post by Ivan »

Hello,

Please check the following article in the Microsoft knowledgebase: "How to deploy a .NET Framework application to run from a network location"

http://support.microsoft.com/kb/832742/en-us?fr=1

Thank you.
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Need help

Post by JorisWils »

You should also look into the "caspol"-command if you want to configure it commandline.

http://msdn.microsoft.com/en-us/library ... 80%29.aspx

For example:

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -q -ag 1 -url "file://\\servername\sharename\*" FullTrust -exclusive on -name "Application Name here"
Using Stimulsoft since 2007
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Need help

Post by dikan »

Thanks Ivan and Joris. I suspect that only access right can cause my problem but I do not now about dot net enough to solve it promptly.

I believe that these information are valuable for all others members.

Regards,

Dikan
mmd.gh
Posts: 4
Joined: Sun Feb 06, 2011 11:07 am
Location: isfahan

Need help

Post by mmd.gh »

hi I have a problem with hp printers :cry:
when my printer is hp brand my report's information is scramble but with the other brand are god !!!!!!!!!
what can i do ?!!!!!
please help me
best wish
Post Reply