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

Why can I only get the option to print pdf files

Hi,

I have a website app that uses CR13sp2 and VS2010sp2. The reports were created with CR10 and are retrieved

to be printed via the VS2010 CR13 app.

I get receive a window which reads:

The viewer must export to PDF to print. Choose the Print option from the PDF reader application once the document is opened. Note: You must have a PDF reader installed to print. (eg. Adobe Reader)

The server is sql server 2003 and I have loaded all the latest runtimes for CR10

Can someone tell me what wrong. There are no CR13 reports passed to the app

Isaac

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Dec 13, 2011 at 12:49 PM

    You have set the PrintMode to use PDF. Change it to use ActiveX like following

    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"  PrintMode="ActiveX"/>

    - Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2011 at 04:25 PM

    And to set the export types use this code:

    // set up the format export types:

    int myFOpts = (int)(

    CrystalDecisions.Shared.ViewerExportFormats.RptFormat |

    CrystalDecisions.Shared.ViewerExportFormats.PdfFormat |

    CrystalDecisions.Shared.ViewerExportFormats.RptrFormat |

    CrystalDecisions.Shared.ViewerExportFormats.XLSXFormat |

    CrystalDecisions.Shared.ViewerExportFormats.CsvFormat |

    CrystalDecisions.Shared.ViewerExportFormats.EditableRtfFormat |

    CrystalDecisions.Shared.ViewerExportFormats.ExcelRecordFormat |

    CrystalDecisions.Shared.ViewerExportFormats.RtfFormat |

    CrystalDecisions.Shared.ViewerExportFormats.WordFormat |

    CrystalDecisions.Shared.ViewerExportFormats.XmlFormat |

    CrystalDecisions.Shared.ViewerExportFormats.ExcelFormat |

    CrystalDecisions.Shared.ViewerExportFormats.ExcelRecordFormat);

    //CrystalDecisions.Shared.ViewerExportFormats.NoFormat); // does nothing except show no export types

    //int myFOpts = (int)(CrystalDecisions.Shared.ViewerExportFormats.AllFormats);

    crystalReportViewer1.AllowedExportFormats = myFOpts;

    You will need to create your own Print button to be able to use all types.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 03:29 PM

    Thaat did it thanks so much

    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.