If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Printing a report using the Crystal Report Web Form viewer

My partner is trying to print a report with Crystal Report, they are using
the Crystal Report Web Form viewer (working with VS .NET final) and can view
the report succesfully. The problem occurs when they try to print the report
via a print button. They already can send the report via email and export
it to PDF succesfully (and print as PDF), but cannot print it from the web
form. The previous version of Crystal Report in VS 6.0 had a icon which printed
the report, but that option is not available in the new VS .NET version.
They do not wish to use the print menu option in the browser, because it
only prints the current page of the report.
We tried using the .NETFramework: ReportDocument.PrinttoPrinter method
(shown in MSDN Libarary) but it generates the following error:"error occurred
in file (the filename.rpt), request cancelled by the user " when calling
the method. Am I missing something? We tried the same code in a windows
form (win32 exe) and were not succesful. Any suggestion appreciated.

Re: Printing a report using the Crystal Report Web Form viewer

I have the same problem, but this occurs in beta 2 too.

Anybody give me a solution yet. The solution seems to print it as PDF. For
me this is not a solution....

"Liz Romero" <vb.@127.0.0.1> wrote:
>
>My partner is trying to print a report with Crystal Report, they are using
>the Crystal Report Web Form viewer (working with VS .NET final) and can
view
>the report succesfully. The problem occurs when they try to print the report
>via a print button. They already can send the report via email and export
>it to PDF succesfully (and print as PDF), but cannot print it from the web
>form. The previous version of Crystal Report in VS 6.0 had a icon which
printed
>the report, but that option is not available in the new VS .NET version.
> They do not wish to use the print menu option in the browser, because it
>only prints the current page of the report.
> We tried using the .NETFramework: ReportDocument.PrinttoPrinter method
>(shown in MSDN Libarary) but it generates the following error:"error occurred
>in file (the filename.rpt), request cancelled by the user " when calling
>the method. Am I missing something? We tried the same code in a windows
>form (win32 exe) and were not succesful. Any suggestion appreciated.
>

Re: Printing a report using the Crystal Report Web Form viewer

"Liz Romero" <vb.@127.0.0.1> wrote:
>
>My partner is trying to print a report with Crystal Report, they are using
>the Crystal Report Web Form viewer (working with VS .NET final) and can
view
>the report succesfully. The problem occurs when they try to print the report
>via a print button. They already can send the report via email and export
>it to PDF succesfully (and print as PDF), but cannot print it from the web
>form. The previous version of Crystal Report in VS 6.0 had a icon which
printed
>the report, but that option is not available in the new VS .NET version.
> They do not wish to use the print menu option in the browser, because it
>only prints the current page of the report.
> We tried using the .NETFramework: ReportDocument.PrinttoPrinter method
>(shown in MSDN Libarary) but it generates the following error:"error occurred
>in file (the filename.rpt), request cancelled by the user " when calling
>the method. Am I missing something? We tried the same code in a windows
>form (win32 exe) and were not succesful. Any suggestion appreciated.
>
I went through this same problem as we began a large ASP to ASP.NET conversion
project. We spent a few days evaluating our options. We have approx. 350
reports in the current system and our users have to print them. The PDF option
offered by Crystal is absurd. What I did was to stay with the non .NET Crystal
version of the Report Writer. I took the .asp file that was provided by Crystal
in our previous implementation and modified it to be a .aspx page. I know
it has to use the interop from .NET to COM, but it seems to be working quite
well so far. I have taken this approach until Crystal gets their head screwed
on. Microsoft did a great job with Visual Studio.NET, but I don't think Crystal
is quite there yet...
Good Luck
Robert