Hello,
what are the minimal access rights i need for an *.mrt report template file and the containing folder for compiling, rendering and showing a report? I need to know this for the use of reports on our ASP hosting server sytem.
Thanks and regards
Thorsten Pontow
What are the minimal access rights for report template file?
What are the minimal access rights for report template file?
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: What are the minimal access rights for report template f
Hello, Thorsten .
The full trust environment is needed to compile report.
Thank you.
You need rights only to read mrt-files.tpontow wrote:what are the minimal access rights i need for an *.mrt report template file and the containing folder for compiling, rendering and showing a report? I need to know this for the use of reports on our ASP hosting server sytem.
The full trust environment is needed to compile report.
Thank you.
Re: What are the minimal access rights for report template f
Hello Aleksey,
i made a simple test. I changed the attribute write protected of a full functional report to true.
After that i get
What do i have to do to open, compile and show a report with write protection? You said that i only need read right.
Kind regards
Thorsten Pontow
i made a simple test. I changed the attribute write protected of a full functional report to true.
After that i get
Code: Select all
System.UnauthorizedAccessException
Kind regards
Thorsten Pontow
- Attachments
-
- ReportWithNoWriteAccess.png (41.69 KiB) Viewed 2254 times
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: What are the minimal access rights for report template f
Ok, we solved the problem. In our internal framework we loaded the report file with
This called in .NET framework the following
which is not good for write protected files
.
The solution is simply the use of
Thanks for your help and support
Thorsten Pontow
Code: Select all
Stream stream = File.Open(fileName, FileMode.Open);
Code: Select all
Stream stream = File.Open(fileName, FileMode.Open, FileAccess.ReadWrite);

The solution is simply the use of
Code: Select all
Stream stream = File.Open(fileName, FileMode.Open, FileAccess.Read);
Thorsten Pontow
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: What are the minimal access rights for report template f
Hello.
Thank you for posting your solution.
Let us know if your have any additional questions.
Thank you.
Thank you for posting your solution.
Let us know if your have any additional questions.
Thank you.