Hi,
I have an VB6 Application that runs Crystal Reports 8.5 for user selected accounts, now if the user selects 40 different reports for lets say 20 accounts, then I will get 20 x 40 reports open with my viewer form, but if user selects one more account to run reports, then I get the "too many files open" error.
So, to try to bypass this problem, I am trying to dynamically copy the report file to a new uniquely generated file name, and run the report instance with the copied report file, that way I will always have only one instance for any given report, what can I say, its a very good idea, and it works too, with one BIG problem, the is a multi-user app (or so my client says) so, I need a way to kill the generated report file at the time the user closes the Report viewer form (at unload or terminate) because as long the form is open I should still have the report file name in the local variables, but I am getting the permission denied even after report is set to nothing and so on.
So how can I delete the report file right before the form is close?
Thanks
David Klein
I have an VB6 Application that runs Crystal Reports 8.5 for user selected accounts, now if the user selects 40 different reports for lets say 20 accounts, then I will get 20 x 40 reports open with my viewer form, but if user selects one more account to run reports, then I get the "too many files open" error.
So, to try to bypass this problem, I am trying to dynamically copy the report file to a new uniquely generated file name, and run the report instance with the copied report file, that way I will always have only one instance for any given report, what can I say, its a very good idea, and it works too, with one BIG problem, the is a multi-user app (or so my client says) so, I need a way to kill the generated report file at the time the user closes the Report viewer form (at unload or terminate) because as long the form is open I should still have the report file name in the local variables, but I am getting the permission denied even after report is set to nothing and so on.
So how can I delete the report file right before the form is close?
Thanks
David Klein