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

VS2010 Add-in OpenDocument

I have an urgent need to export a report from a CR2008 server directly to disk in PDF. We normally open the report in a web browser using the OpenDocument. I'm doing this from a Windows Forms application.

I've downloaded/installed the VS2010 add-in and found some code to save directly to disk. I can't find an example of loading a report from the BO server into the Crystal Report ReportDocument object.

Here is a snippet of code.

var exportPath = "c:
exportedfile.pdf";

var crReportDocument = new ReportDocument();

crReportDocument.Load() // This is the line I can't figure out.

crReportDocument.ExportToDisk(ExportformatType.PortableDocFormat, exportPath);

The report is based on a stored procedure so I also need to pass parameters along also.

Thanks in advance.

Jeff

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 08, 2011 at 09:16 PM

    Hello Jeff:

    You can not use Crystal Reports for Visual Studio 2010 (CRVS2010) with BOE. The neccessary assemblies are not available in CRVS2010.

    Ludek

    Follow us on Twitter http://twitter.com/SAPCRNetSup

    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

    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.