Page 1 of 1

Prevent to save dll

Posted: Fri Jan 19, 2018 12:16 pm
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!

Re: Prevent to save dll

Posted: Fri Jan 19, 2018 9:42 pm
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

Re: Prevent to save dll

Posted: Mon Jan 22, 2018 7:18 am
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.

Re: Prevent to save dll

Posted: Mon Jan 22, 2018 3:15 pm
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.

Re: Prevent to save dll

Posted: Tue Jan 23, 2018 5:43 am
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.

Re: Prevent to save dll

Posted: Tue Jan 23, 2018 6:04 am
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

Re: Prevent to save dll

Posted: Tue Jan 23, 2018 12:43 pm
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.

Re: Prevent to save dll

Posted: Fri Jan 26, 2018 6:40 am
by Prandl33
Hello,
sorry, but this is not an option for us.
Thank you.

Re: Prevent to save dll

Posted: Mon Jan 29, 2018 1:25 pm
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.