<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Crystal Report Viewer Export options in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528837#M2057096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that list seems to be hard coded into the viewer and can not be changed in CR 2008.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 13:33:54 GMT</pubDate>
    <dc:creator>former_member184995</dc:creator>
    <dc:date>2009-04-15T13:33:54Z</dc:date>
    <item>
      <title>Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaq-p/5528835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the toolbar of Crystal Report Viewer, there is export button, click it it will pop-up the file dialog for you to choose the export format and dist file location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the default(first choice) export format in CR2008 is ".rpt", , how can I set the default export format to ".pdf"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 03:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaq-p/5528835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T03:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528836#M2057095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to create your own export button and use our API's to set the format and destination options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can export report through this code:&lt;/P&gt;&lt;P&gt;crReportDocumentObject.ExportToDisk(ExportFormatType.PortableDiskFormat,"c:&lt;BR /&gt;temp&lt;BR /&gt;myRpt.pdf"); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the format type as per your requirement.&lt;/P&gt;&lt;P&gt;Your question is answered in this  [thread|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1234568"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 10:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528836#M2057095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T10:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528837#M2057096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that list seems to be hard coded into the viewer and can not be changed in CR 2008.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528837#M2057096</guid>
      <dc:creator>former_member184995</dc:creator>
      <dc:date>2009-04-15T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528838#M2057097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No reply for over a month. Closing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 17:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528838#M2057097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T17:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528839#M2057098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using CR 2008 , we want to change the dropdown list of export in crystal report viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i found in IIS one fie export.js , after change in export.js file. the drop down list is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do not want create custom  button on web, i want ot use same toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaurav Maheshwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 11:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528839#M2057098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-02T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528840#M2057099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its neither recommended to make any changes in the viewer control nor possible using CR api's. This is just to ensure the stability of the viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just so that you are aware, kindly post new questions in new posts rather than appending in closed posts for better response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 12:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528840#M2057099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-02T12:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528841#M2057100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've modified the export options dialog to control what export formats are available in my Crystal 2008 Viewer, so this is clearly possible and there are no negative impacts on stability. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, afaik, the only way to achieve this is by modifying the toolbar in code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 13:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528841#M2057100</guid>
      <dc:creator>ido_millet</dc:creator>
      <dc:date>2010-08-02T13:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528842#M2057101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;share or any reference link   to  modify the toolbar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 10:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528842#M2057101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T10:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528843#M2057102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the viewer Export button from the toolstrip &lt;/P&gt;&lt;P&gt;Add a new Export button &lt;/P&gt;&lt;P&gt;On click event of the new Export button, present the user with custom export form &lt;/P&gt;&lt;P&gt;Use the following sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Private Sub frmReportPreview_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim ts As ToolStrip        
Dim currentExportButton As ToolStripButton        
Dim newExportButton As ToolStripButton

' Replace the export button with our own export button so we can handle the event ourselves
ts = DirectCast(CRViewer.Controls(4), ToolStrip)        
currentExportButton = DirectCast(ts.Items(0), ToolStripButton)
ts.Items.Remove(currentExportButton)        
newExportButton = New ToolStripButton("", My.Resources.Export, AddressOf ExportButton_Click)
newExportButton.ToolTipText = "Export report to disk"        
ts.Items.Insert(0, newExportButton)

End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create windows form 'frmReportExport' that contains the export file types and their order, then use the following code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Private Sub ExportButton_Click(ByVal sender As Object, ByVal e As EventArgs)

Dim frmExport As frmReportExport

' Allow the user to specify options such as the name of the file and format before exporting.
frmExport = New frmReportExport        
frmExport.Report = Report        
frmExport.ShowDialog()

End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the code below to run the export from the custom report export windows form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Report.ExportToDisk(exportFormat, fileExport.SelectedFilename)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do note. This is an unsupported, undocumented hack of the viewer. This may work for your current app, but you risk that the same approach may not work in future versions of the viewer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ludek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 15:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528843#M2057102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T15:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Crystal Report Viewer Export options</title>
      <link>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528844#M2057103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that possible to set a default directory with this apporach when user click  the "export" button? &lt;/P&gt;&lt;P&gt;I have to keep all export types. &lt;/P&gt;&lt;P&gt;I  was able to replace the export button with my own button but not sure what i need to do next.&lt;/P&gt;&lt;P&gt;Help me please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 15:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/crystal-report-viewer-export-options/qaa-p/5528844#M2057103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T15:49:03Z</dc:date>
    </item>
  </channel>
</rss>

