Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How do i Print and Export Crystal Report???

How do i Print and Export Crystal Report???

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    keroed_edmond
    wrote on last edited by
    #1

    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?

    K 1 Reply Last reply
    0
    • K keroed_edmond

      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?

      K Offline
      K Offline
      keyboard warrior
      wrote on last edited by
      #2

      <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

      K 1 Reply Last reply
      0
      • K keyboard warrior

        <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

        K Offline
        K Offline
        keroed_edmond
        wrote on last edited by
        #3

        yes i am binding it programically is that the problem? i did all of the above and its still not working

        K 1 Reply Last reply
        0
        • K keroed_edmond

          yes i am binding it programically is that the problem? i did all of the above and its still not working

          K Offline
          K Offline
          keyboard warrior
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups