Report compilation error - How to prevent CS file deletion ?
Re: Report compilation error - How to prevent CS file deleti
Hello.
What is wrong with it ?
When I use the SQL Profiler to see the infinite queries being sent to the DB, the SQL query seems OK.
SQL Server executes them with no problem.
Am I mising something?
EDIT:
I have also tried changing "string.IsNullOrWhiteSpace" to "string.IsNullOrEmpty" (that you once suggested for me for some reason) but it didn't help.
What is wrong with it ?
When I use the SQL Profiler to see the infinite queries being sent to the DB, the SQL query seems OK.
SQL Server executes them with no problem.
Am I mising something?
EDIT:
I have also tried changing "string.IsNullOrWhiteSpace" to "string.IsNullOrEmpty" (that you once suggested for me for some reason) but it didn't help.
Re: Report compilation error - How to prevent CS file deleti
Hello,
Sorry, I have not noticed that you call Connect() method for datasource in BeforePrint event of Page. You should connect only once, but in your report this occurs many times and caused a looping.
Please try to add the additional variable which will be indicate that datasource is already connected.
Thank you.
Sorry, I have not noticed that you call Connect() method for datasource in BeforePrint event of Page. You should connect only once, but in your report this occurs many times and caused a looping.
Please try to add the additional variable which will be indicate that datasource is already connected.
Thank you.
- Attachments
-
- Capture.PNG (103.55 KiB) Viewed 7178 times
-
- 51_2.mrt
- (27.36 KiB) Downloaded 281 times
Re: Report compilation error - How to prevent CS file deleti
Thanks.
How can I do this?
Is this OK (if I put it on BeforePrint)? :
(Now that I've tried it, it seems to prevent the problem.)
How can I do this?
Is this OK (if I put it on BeforePrint)? :
Code: Select all
if(!Ekkrem.IsConnected) Ekkrem.Connect();
Re: Report compilation error - How to prevent CS file deleti
Hello,
In previous post i attach the modified report in which have added an additional boolean variable and use it in BeforePrint event.
Your code also should work.
Thank you.
In previous post i attach the modified report in which have added an additional boolean variable and use it in BeforePrint event.
Your code also should work.
Thank you.
Re: Report compilation error - How to prevent CS file deleti
Thanks.
But, could my solution (check for `Ekkrem.IsConnected`) do the same thing?
It seems simpler too.
But, could my solution (check for `Ekkrem.IsConnected`) do the same thing?
It seems simpler too.
Re: Report compilation error - How to prevent CS file deleti
Hello,
Yes.
Let us know if you need any additional help.
Yes.
Let us know if you need any additional help.
Re: Report compilation error - How to prevent CS file deleti
OK.
Thanks a lot!
Thanks a lot!

Re: Report compilation error - How to prevent CS file deleti
We are always glad to help you!