Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
there are 6 pages in my report and when i view report,report is viewed seperately in 6 pages(no problem here) but when i print that report only that last page i.e. only that 6th page is printed..i want all pages to be printed seperately in 6 pages...how to code?please help me
the following is the code i used in javascript:
C#
<input style="Z-INDEX: 111; LEFT: 737px; WIDTH: 53px; POSITION: absolute; TOP: 18px; HEIGHT: 19px; "
 önclick="javascript:window.print();" type="button" value="Print" id="Button9"/>

<CR:CrystalReportViewer ID="CrystalReportViewer1"  runat="server" 
AutoDataBind="true" DisplayGroupTree="False" DisplayToolbar="False" 
HasCrystalLogo="False" HasDrillUpButton="False" HasExportButton="False" 
HasGotoPageButton="False" HasSearchButton="False" 
HasToggleGroupTreeButton="False" HasViewList="False" 
HasZoomFactorList="False"/>
Posted
Updated 17-Jul-13 1:21am
v2
Comments
ZurdoDev 17-Jul-13 7:49am    
You are using window.print which will print only what is in the window.
deepa ashwi 17-Jul-13 8:09am    
ok sir so to print all pages what should i use
Bernhard Hiller 18-Jul-13 3:10am    
Strange... how often do I see an önclick in this forum?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900