Link to home
Start Free TrialLog in
Avatar of sborchers
sborchers

asked on

Print Crystal Reports (web)

I'm trying to print a Crystal Report from a Web page.  Is there a way to do that?  I have the data populated into the report but if you use the print button in the Internet Explorer it doesn't have the correct format.  The data in the report is the way i want it.  I'm using the Crystal Report that came with Visual Studio .net 2003.  The CrystalReportViewer doesn't have a print button on it and there are no properties that can be added to show a print button.  I'm building the application in vb.net web.
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sborchers
sborchers

ASKER

Thanks for the code.  I implemented it, but when i hit the line:   oStream = CType(oRpt.ExportToStream(exportType), MemoryStream):   I get a logon error.  Can you help me with that too?
logon errors, uggh!  They could be just about anything.  Are you using push or pull model for your report?
I'm not exactly sure what push or pull model's mean??  I guess there is data in a sql table, i have a simple SQL Server connection and just bring back data from one table.  Then i moved a couple of the fields over to be on the crystal report.  And that was about all i've done... I would like to be able to pass a parameter so when i would use a stored procedure i could pass some sort of criteria.  But first i would like to be able to print the data.

Thanks again for your help.
Is there any more help i can get on printing crystal reports from a web page or with the logon error described above?