Prevent to save dll

Stimulsoft Reports.WPF discussion
Post Reply
Prandl33
Posts: 40
Joined: Wed Nov 16, 2016 4:24 pm

Prevent to save dll

Post by Prandl33 »

Hello,
when Stimulsoft compile a report, a DLL is placed in the user-temp-directory.
How can I prevent a dll from being saved or how can I change the directory?
Thank you!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Prevent to save dll

Post by Edward »

Hi Prandl33,

Please check the following topics, you will be able to compile to the specific folder:

viewtopic.php?t=37720
https://stimulsoft.zendesk.com/hc/en-us ... assemblies

Thank you,
Edward
Prandl33
Posts: 40
Joined: Wed Nov 16, 2016 4:24 pm

Re: Prevent to save dll

Post by Prandl33 »

Hello Edward,
I compile the reports with the following method:

Code: Select all

MemoryStream repStream = new MemoryStream()
Report.Compile(repStream);
byte[] repLayout = repStream.ToArray();
then the repLayout is stored in the database.
I don't want something stored in the filedirectory.
But the Methode Report.Compile(<MemoryStream>)
stores a DLL in the directory.
Is it possible to prevent that.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Prevent to save dll

Post by HighAley »

Hello.

At this moment it's impossible to compile a report to a stream without creating a file.
The file should be created anyway for the compilation process.
As a way, you could compile the report to a specified path then read it to a stream and remove the file.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Prevent to save dll

Post by HighAley »

Hello.

We have made an improvement.
Now the Report.Compile(<MemoryStream>) method will remove file after reading it to a stream.
This fix will be included in our next build.

Thank you.
Prandl33
Posts: 40
Joined: Wed Nov 16, 2016 4:24 pm

Re: Prevent to save dll

Post by Prandl33 »

Hello,
thank you for your efforts, but the problem is that at our client a virus scanner monitors the user-temp directory.
This virus scanner refuses to save the dll. Actually, I would have thought if I compile in a memory stream,
that then nothing is saved to the hard drive. Do we have a chance to make that possible?
Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Prevent to save dll

Post by HighAley »

Hello.

In this case, we suggest you to not use compilation.
There is an interpretation mode that you could use.
In this case the report is not compiled.

Thank you.
Prandl33
Posts: 40
Joined: Wed Nov 16, 2016 4:24 pm

Re: Prevent to save dll

Post by Prandl33 »

Hello,
sorry, but this is not an option for us.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Prevent to save dll

Post by HighAley »

Hello,

We are sorry, but we can't change behavior of the .Net Framework methods.
We will be glad to help you, but we can't do anything in this case.

Thank you.
Post Reply