954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Printing problem with crystalreportviewer

Hi all, im new in this forum ;)
I have a problem here with crystal report.
I have building report in web (asp.net 2.0) using crystalreportviewer control. I used crystal report 10 for the report.
I have succeed to view the report. But, if i press the print button, it give me nothing. :sad:
Few days ago, everytime I clicked print button, a messagebox showed up. It request to instal printcontrol.cab.
Then i add this code to web.config to avoid this messagebox showing up again :
[configSections]
[sectionGroup name="businessObjects"]
[sectionGroup name="crystalReports"]
[section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/]
[/sectionGroup]
[/sectionGroup]
[/configSections]
[businessObjects]
[crystalReports]
[printControl]
[add key="url" value="http://localhost/MyWeb/PrintControl.cab"/]
[/printControl]
[/crystalReports]
[/businessObjects]
Now, that messagebox is not showing again. But, still, it printed nothing. Now, when i click print button, a blank little window with title "Cristal Report Viewer" is showing up for few seconds than automaticaly closed. But still, it doesn't print anything.
I can print but using export function, to PDF or else. But i think that is not solution.
Can anybody give me a better solution?
Thanks before

Regards,
Kian

Kian99
Newbie Poster
2 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 

hi kian
I have the same problem.I check all things and all things are correct pls guide me if you found the solution?

mania12345
Newbie Poster
2 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

when I press print button in crystalreportviewer or press the export button , all data fields diapear and I get only text fields and borders of data fields.(means after the pressing on the monitor also I have not any data (data of datafiled).(visual studio2005,asp.net,crystalreport). why?

mania12345
Newbie Poster
2 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

Try With this code

crystalreportviewer.ReportSource = reportDocument.Clone()

perumalla1215
Newbie Poster
1 post since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You