Skip to Content
author's profile photo Former Member
Former Member

Import crystal report data

How to import cystal report data into MS Excel while running Crystal report in SAP Business one?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 29, 2008 at 06:19 AM

    Hi

    It works when u try to import while running ur addon.

    I think u r trying to do this in development environment.

    regards:

    Sandy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2008 at 05:58 AM

    Hi,

    i you addon to print crystal reports use the viewer to print (it's like preview printing).

    than the crystal report is not directly print to printer you'll get a preview window.

    from this preview window you can access various export functions.

    this only works when you included the preview window in a windows form in your addon.

    regards

    David

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2008 at 09:34 AM

    Hi,

    You can use

    ReportDocument.ExportToDisk(ExportFormatType.Excel, filename);

    This is in the CrystalDecisions.CrystalReports.Engine namespace.

    Before that, you need to use ReportDocument.Load("myreport.rpt") to load the data.

    Best Regards,

    Jay.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.