How do i Print and Export Crystal Report???
-
i added a crystal report to one of my asp.net pages and it works fine in the sense that its loaded and displayed on the screen and paging and everything works. But whenever i click on the export or print menu on the report it doesn't do either. i am not sure what i am doing wrong is that i am suppose to set something in the code behind? or some event needs to be set i am not sure. so can anyone tell me how i can allow my crystal report to be exported or printed?
-
i added a crystal report to one of my asp.net pages and it works fine in the sense that its loaded and displayed on the screen and paging and everything works. But whenever i click on the export or print menu on the report it doesn't do either. i am not sure what i am doing wrong is that i am suppose to set something in the code behind? or some event needs to be set i am not sure. so can anyone tell me how i can allow my crystal report to be exported or printed?
<CR:CrystalReportViewer ID="rptViewer" runat="server" AutoDataBind="true" DisplayGroupTree="False" EnableDrillDown="False" EnableToolTips="False" HasCrystalLogo="False" HasSearchButton="False" HasToggleGroupTreeButton="False" PrintMode="pdf" ReuseParameterValuesOnRefresh="True" />
That's my code for the report viewer Are you binding to the report view programmatically? I know I've seen this problem but I'm still trying to recall how we fixed it. Did you enable viewstate?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reports.aspx.cs" EnableEventValidation="false" EnableViewState="true" Inherits="reports" %>
----------------------------------------------------------- "When I first saw it, I just thought that you really, really enjoyed programming in java." - Leslie Sanford
-
<CR:CrystalReportViewer ID="rptViewer" runat="server" AutoDataBind="true" DisplayGroupTree="False" EnableDrillDown="False" EnableToolTips="False" HasCrystalLogo="False" HasSearchButton="False" HasToggleGroupTreeButton="False" PrintMode="pdf" ReuseParameterValuesOnRefresh="True" />
That's my code for the report viewer Are you binding to the report view programmatically? I know I've seen this problem but I'm still trying to recall how we fixed it. Did you enable viewstate?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reports.aspx.cs" EnableEventValidation="false" EnableViewState="true" Inherits="reports" %>
----------------------------------------------------------- "When I first saw it, I just thought that you really, really enjoyed programming in java." - Leslie Sanford
yes i am binding it programically is that the problem? i did all of the above and its still not working
-
yes i am binding it programically is that the problem? i did all of the above and its still not working
i know when you got to print or export it queries for new data. i thought that enableviewstate=true was the fix. do you pass the report view logon credentials in the code? or do you type them into the form [edit] that's actually probably a dumb question. but if you dont pass the logon credentials and just bind the report file to the view then perhaps when you attempt to print or export it is just getting locked out. [/edit]
----------------------------------------------------------- "When I first saw it, I just thought that you really, really enjoyed programming in java." - Leslie Sanford
modified on Thursday, May 22, 2008 2:06 PM