<?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: Exporting Crystal report into Excel with code in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409533#M2991263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 17:02:54 GMT</pubDate>
    <dc:creator>former_member1012208</dc:creator>
    <dc:date>2012-01-09T17:02:54Z</dc:date>
    <item>
      <title>Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaq-p/8409526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written the following code to export crysal reports to excel. My problem is, when it exports number it adds the thousand seperator (,), but if I export the report from Crystal designer, it works fine. So I believe I am missing something in my code. Could some one help me with this? Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
       Dim xlApp As Microsoft.Office.Interop.Excel.Application
        Dim xlBook As Workbook


        Dim myReport1 As New ReportDocument
        Dim reportPath1 As String = ""

        reportPath1 = "C:\test\su.rpt"
        myReport1 = New ReportDocument
        myReport1.Load(reportPath1)

        Dim tmpExcelFile As String = ""

        tmpExcelFile = "C:\test\test.xls"

        myReport1.ExportToDisk(ExportFormatType.Excel, tmpExcelFile)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 21:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaq-p/8409526</guid>
      <dc:creator>former_member1012208</dc:creator>
      <dc:date>2011-12-28T21:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409527#M2991257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide&lt;/P&gt;&lt;P&gt;- Crystal Reprots version&lt;/P&gt;&lt;P&gt;- Visual Studio version&lt;/P&gt;&lt;P&gt;- Win or web app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using 'ExportToStream' see if it reproduces the issue.&lt;/P&gt;&lt;P&gt;[1198587 - How to export a report to stream in C Sharp (C#) for Visual Studio .NET |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333533383337%7D.do]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Bhushan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 22:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409527#M2991257</guid>
      <dc:creator>former_member188030</dc:creator>
      <dc:date>2011-12-28T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409528#M2991258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you export from the Viewer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you have the fields defined in your report for the number format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 02:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409528#M2991258</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2011-12-29T02:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409529#M2991259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exporting from the viewer direct works fine. I have formatted all numbers and currency fields not to show thousand separator, but til it didn't work.&lt;/P&gt;&lt;P&gt;So I used the totext(x,y,z) function to convert all numbers and currency to text and that worked. Still I would like to know how to do this without totext function.&lt;/P&gt;&lt;P&gt;I have Crystal reports 2008 with VS 2010&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 00:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409529#M2991259</guid>
      <dc:creator>former_member1012208</dc:creator>
      <dc:date>2011-12-30T00:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409530#M2991260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I did was open the report up and set the field to a format without the thousand separator. I did not use Custom option but one of the defaults and it works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 01:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409530#M2991260</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2011-12-30T01:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409531#M2991261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work for me. Only option is to use  totext(x,y,z)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 19:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409531#M2991261</guid>
      <dc:creator>former_member1012208</dc:creator>
      <dc:date>2012-01-04T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409532#M2991262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you duplicate it if you use CR for VS 2010 or use VS 2008 with CR 2008 runtime? We don't support CR 2008 in VS 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to this page to get the free CR for VS 2010 plug-in, it is full featured and gives you inProc RAS also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/boc/crystalreports-dotnet" target="test_blank"&gt;http://www.sdn.sap.com/irj/boc/crystalreports-dotnet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom of the page to get the installer and runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 22:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409532#M2991262</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2012-01-04T22:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Crystal report into Excel with code</title>
      <link>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409533#M2991263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 17:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/exporting-crystal-report-into-excel-with-code/qaa-p/8409533#M2991263</guid>
      <dc:creator>former_member1012208</dc:creator>
      <dc:date>2012-01-09T17:02:54Z</dc:date>
    </item>
  </channel>
</rss>

