cancel
Showing results for 
Search instead for 
Did you mean: 

Why can I only get the option to print pdf files

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

saurabh_pathak
Active Contributor
0 Kudos

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

former_member183750
Active Contributor
0 Kudos

Isaac, you can also set the print mode in the design form of the viewer.

- Ludek

0 Kudos

Thanks for this saurabh.pathak, I added PrintMode="ActiveX"/ as a property to the tag above but I still only get export to PDF option. When I click export nothing happens... Any suggestions?

Answers (2)

Answers (2)

Former Member
0 Kudos

Thaat did it thanks so much

0 Kudos

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

Former Member
0 Kudos

Thanks so much!

Isaac