locked
How to embed an Excel file in a Crystal Report RRS feed

  • Question

  • User-155756324 posted

    Hi,

    I want to place an image button  in my Crystal report and when user click on that image button it will give option for user to download the excel file which is generated at runtime. Can any one tell me how to do this?  

    I am using technologies Visual Studio 2005, C#.NET, ASP.NET, Microsoft Excel 2003 and Operating system Windows Xp.

    Regards,

    vispqr.

    Friday, June 10, 2011 3:07 AM

Answers

All replies

  • User-269404413 posted

    vispqr,

    you didnt mentioned what version of crystal report r you using? anyhow here is the code to export data

    1. http://forums.asp.net/t/1364306.aspx/1?Crystal+Report+Export+to+Excel here i already posted code

    2. http://www.fryan0911.com/2009/05/aspnet-how-to-export-crystal-report-to.html

    3.  http://www.codeproject.com/KB/aspnet/crCode.aspx

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 10, 2011 3:49 AM
  • User-155756324 posted

    Hi jeyaseelan,

    I am using Crystal report version 10.2.3600.0

    My requirement is not to export crystal report to Excel. I know how to export crystal report to Excel,pdf and text files.

    Before explaining my exact requirement i am going to tell you what i am doing in my website step wise so that it will give you a clear idea on my requirement.

    first: I had placed a button in my .aspx page when user click on that button it will generate a crystal report in a .pdf format and open.

    Now my requirement is i want to place an image button in that .Pdf file and after opening the report in .Pdf format when user click on that image button it will give a option for user to download the excel file.

    Note: The excel file which user going to download is not generated by using Crystal report values it was generated dynamically by capturing text box values from some other pages.

    My doubt is first of all it is possible to place a image button in a Crystal report which  is in .PDF format. Because when you observe once we open a report in .PDF format in the top of PDF file we have option like save, print etc. right so once we clickon save button we are able to save that pdf file like that i want to place a image button so when user click on that button he is able to down load the excel file. Is this feasible or not? If it is feasible then how to do this can you please tell me.

    Thanks & Regards,

    vispqr.

     

     

     

     

     

     

     

     

     

     

     

     

    Friday, June 10, 2011 5:52 AM
  • User-269404413 posted

    vispqr,

    you want to place the image button within pdf file. then as per my knowledge it is not possible.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 10, 2011 8:08 AM