Problem with Exporting crystal report to Excel

Hi !
I am new to crystal world. I have an application which has csp code. From the csp code (internal website) we invoke crystal using viewer.cwr to view or export reports. Last week we upgraded from Crystal 10 to Crystal Reports XI Release 2. Due to this upgrade we did some modification to the Viewer.cwr url ( Changed to Viewer.asp too). Now the View option is working fine but when the report is exported to an Excel the columns are squeezed up.
Here is the code for the viewer.asp :
ExcelWindow = window.open("http://servername/crystalreportviewers115/viewrpt.asp?id=" + id + "&apstoken=" + escape(token) + <%Response.Write("'"&sReportLogin&"'")%>'&promptex-REPORTDATE='pRptDate'&promptex-State='pState'&promptex-usertype='pUserType'&promptex-startreport='pStartpSelect'&cmd=export&export_fmt=U2FXLS:3&',"ExcelWindow", windowprops);                                                         
Is there any way to solve this formatting issue ? I tried changing the export format option as "export_fmt=U2FXLS:4" but this pulled up the data with the report header and sub heading in one row. Please help. 
Nandita

Hi Kedalene,
Please check below links.
Microsoft Visual C++ Runtime Library:
VC++ runtime error
C++ Runtime Error when installing addons | SCN
Hope this help
Regards::::
Atul Chakraborty

Similar Messages

  • Problem with exporting a report to excel vial citrix server

    Hi,
    We are encountering a problem with exporting a report to excel through ALV local file icon.A spread sheet is downloading only one row (From header) instead of many rows from the ALV output .  
    Above is working fine for the GUI installed on my PC, but not throgh the Citrix server.
    Can any body have idea on above mentined?
    Regards,
    SK.

    I understand that you're trying to download the file to a local computer  through Citrix. In this case you need autorizations in Citrix for your user ( CItrix user)

  • Problem with the crystal reports XI

    Portuguese
    Boa Tarde, tenho um problema com o cristal reports XI.
    ele esta em producao fazendo a consulta em um servidor mas quando eu acesso passando parametro connectionInfo.ServerName = <endereco do servidor> para um servidor de teste pelo VStudio 2005, ele nao busca os dados deste e continua acessando o servidor de producao.
    gostaria de saber como consertar isso
    English
    Good afternoon, I have a problem with the crystal reports XI. him this in production making the consultation in a servant but when I access passing parameter connectionInfo.ServerName =  I address of the servant > for a test servant for VStudio 2005, he doesn't look for the data of this and it continues accessing the production servant.

    Fabiano, here is what I understand of the issue:
    1) You are using CR XI (I am not sure if release 1 or release 2)
    2) you are using .NET 2005
    3) you are trying to change the server name, but the report keeps giving you data from the original server
    Please answer the following:
    1) Are you using CR XI release 1 or release 2?
    2) Can you change to the new server, using the Crystal Reports Designer?
    3) Can you duplicate the issue on your development computer?
    4) What Crystal Reports service pack are you on?
    5) Are you connecting to the database using OLE DB?
    Ludek

  • How to export crystal report to excel through progeam

    Hi,
    Can any help me how to export crystal report to excel through program(C#). I'm using VS2005.
    Also, the report should be in a pivot table format after exporting to the excel..please help me how to do this
    Thanks,
    Venky

    Hi Venkat,
    The link below provides the code C# in an ASP.NET codebehind file
    http://www.codeproject.com/KB/cs/Crystal_Report_Export.aspx
    http://aspalliance.com/478_Exporting_to_Excel_in_Crystal_Reports_NET__Perfect_Excel_Exports.2
    Regards,
    Abhijeet  T.

  • Exporting Crystal report into Excel with code

    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.
           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)

    Hi Don,
    Please provide
    - Crystal Reprots version
    - Visual Studio version
    - Win or web app?
    Try using 'ExportToStream' see if it reproduces the issue.
    [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]
    - Bhushan.

  • Export crystal report to excel with subreport

    I have a report with two subreport, and the question is when I export the main report to excel ( data only ) there is no data in the excel file, but when I just export the subreport to excel ( data only ), the excel file shows all data correctly. Does anybody know a solution can resolve this problem? Thanks.

    1. Add one more Report Footer by right clicking on the Report Footer and selecting insert section below
    2. Put Subreport 1 in the Report Footer a i.e. RFa
    3.Put Subreport 2 in the Report Footer b i.e. RFb
    4.Export the report to Excel Data Only.
    5. You should be able to see the data for both the subreports

  • Formating issue after export crystal report to excel format

    Hi Everyone,
    I have a crystal report devloped in crystal 8.5 and i am calling this report from my .net windows application.  I have a problem when i export the report in excel format. One of the column size(which is report footer) gets increased because of which my report is not properly formated. I have reoved all the blank lines and extra space but still i am not able to reduce the column size. Any help will be appriciated.
    Thanks in advance.

    Hi,
    Please let us know the Visual Studio Version that you are using, just to inform you, VS2005 is compatible with CRXIR2 and above and VS2008 is compatible with CR2008 + SP0.
    Do the report display properly from the designer? Does the Export from the designer in xls works fine?
    Thanks,
    AG.

  • Exporting Crystal Report to Excel Data Only Fails On Demand in Infoview

    I am having the following problem with only 1 report in Business Objects.  The report runs fine in Infoview, but the Excel export fails after around 5 minutes.  It exports fine when scheduled.  The reports is over 3,000 pages of data and comes in at around 45MB.  It will export up to 2500 pages fine on demand.  But this whole report used to run and export on demand perfectly.  Perhaps only a few hundred records were added recently but that is all.  I don't know of any other changes to the system.
    The error says:  CrystalReportViewer
                                   handleCrystalEvent failed
                            Unable to retrieve Object
                            The Page Server you are trying to connect to is not accessible.  Please contact your system administrator
    Again, this is the only report this happens on.  I've searched everywhere on the Internet without a solution.
    Page Server settings:  60 and 120 minutes  Unlimited records
    Cache Server settings:  1000000 Kbytes;  80 minutes;  it sees the page server in Metrics
    If any more settings would help to diagnose the problem, please let me know.  Thanks for the help.

    How many number of rows are there in the report?
    -Rahul

  • Problem in exporting ALV Report to excel sheet

    Hi All,
    I have developed a Report and now facing problem in exporting the same to excel sheet.
    When we click the "Locate File" icon in the report layout, the system will pop up a window with radio buttons. I have opted for 'Spreadsheet'.
    When i save the excel sheet into my desktop, the excel file has all the report headers (Title of each column). But no value is exported.
    There are around 15 columns in the report and the excel sheet shows value of last 2 columns which has some text.
    I have been into ALV report development and developed around 30+ reports in the same fashion.
    What might be the reason behind this issue?
    When i export other reports into excel sheet, everything is perfect without any flaws......
    Kindly help me out......
    Regards
    Pavan

    Hi,
    Here's my suggestion: Install OpenOffice.org and ask SAP to deliver good integration with OpenOffice.org.
    Alternative suggestion: re-install SAP Gui on the PC where the integration is not working. If that does not help, re-install Microsoft Office as well.
    Here's my comment: I think you should ask this question in a different forum, e.g. in the Duet forum. That may not be the correct forum either, but as it is a Microsoft/SAP integration technology forum, someone there may know the solution.
    Regards,
    Raj.

  • Problems in exporting crystal report to word format

    Hi All,
    I am getting trouble in exporting crystal report to word formats.
    Here are my questions:
    1) The exported word file will have a text "R..950" added on top right hand corner, How to get rid of it?
    2) For those "Can Grow" fields, it can show multiple line data correctly in the viewer. However, the text box in exported word file will be too small to show all the content and lower half of the text is cut.
    Thanks and Regards,
    Cherry

    Hi Asha,
    Thanks for reply.
    The version of crystal report designer and viewer which I am using is version 11 Release 2.
    Besides, I guess it might relate to the format of report so I would like to tell you more.
    Font Face: Arial Unicode MS (in order to show chinese characters)
    Font Size: 9 pt
    For the text "R..950" issue, I just found that some people in the internet having the same issue and they suggested that may relate to the locate. In my case, the locate is Chinese (Hong Kong S.A.R.).
    If it is necessary, I may send you my report with sample for test.
    Regards,
    Cherry

  • Image Display Problem while exporting jasper report in EXCEL

    Hi
    I am using Jasper reports for my reporting work using java code.
    when i export my report in PDF then , report is ok and displaying Image properly.
    but when i export my report in EXCEL then , there is no image in my report, rest part is fine.
    Can anyone please help me in getting image in excel format also.
    thanks in advance
    Praveen

    I have not any problem in picture or logo.
    But I have an another problem.
    My Excel format produce multiple column,that is unefficient format.
    If you have not this problem please mail me at --- [email protected]

  • Exporting Crystal report to excel 2007 with an image

    Hi - I hope this is the correct forum for this question.
    We are using the Crystal report viewer and everything works just fine . When I go to export to excel (using office 2007) the images are not exporting, do you know if this is an excel 2007 problem or a Crystal issue?
    Thanks in advance
    DanPlo

    Hi;
    I still recommend installing the Service Pack. If the issue persists, and is contained to the version 8.5 reports, then yet, they will likely need to be converted to version 11.0 to work correctly. The Crystal Reports engine was completely re-written in version 9.0, so moving from 8.5 can cause some issues.
    If you try exporting one of the 8.5 reports from the verison 11.0 Designer, do you have the issue?
    Regards,
    Jonathan

  • Export Crystal Report to Excel with Grids

    Can anyone tell me how or if it's possible to include the grid lines when exporting from Crystal Reports (version 10) to Excel?   I am exporting as "data only" because I need to include field properties (color, bold, etc.).  Because of this, I don't see a "Show Gridlines" option on the export.   On the Crystal report, I have selected both single line and double line borders for each field on the report, but it's not transferring over to Excel.
    Thanks for any help you can provide.

    I did adjust the col. widths, but on larger col. headings, the text was chopped off.   I could get around this by making the field wider on the Crystal report.  With having so many cols., this was an issue.   And if the detail wasn't the same width as it's corresponding header, the report was not pretty.  
    This report was an evolution with me trying different things to get everything to fit in the designer until I finally discovered the Image Writer.   By exporting as Data Only, it doesn't matter how wide the heading/field is in the designer because the entire text exports.   Then I just select the entire worksheet and adjust the col. alignment so that everything shows.   I had to play around with things to get my colors and fonts to export - but the grids were the only remaining piece to the puzzle.  
    As it turns out, the users are happy with the end result without the grids.   They can add them manually if they so choose.
    Thanks

  • Problem in Exporting Crystal Report to MS-Excel 97-2000(data only)

    I have developed a crystal report using VS 2008 which has 12 columns, my question is when i export the report to MS Excel 97-2000 (data only) the report gets exported completely but some columns header names are missing i mean out of 12 column header names only 6 are getting displayed, kindly help me out.
    Thanks in advance
    Ramakrishna Reddy

    Hi Ramakrishna,
    When you export any report in data only format, all the formatting which has been applied to report fields will be lost.
    If you want the formatting as well then in export option check the box "Maintian object formatting".
    Or else you can export to MS EXCEL 97-2000 which will maintain all the formatting.
    Thank you
    Sumit

  • Problem in Exporting FAGLB03 report in Excel

    Hi,
    We have recently done upgrade from ECC 5. to ECC 6.0, first we have the problem related to When we download data to Excel in MHTML format it is adding additional zeros to all the total / sub total lines. But when I download it to excel it is not adding any additional zeros. Please could any one help me how to fix this issue?
    Ex: if I have 133.38 in total, in MHTML format it is showing 1333800000.00 but in excel it is showing as 133.38.
    To resolve this i have entered parameter id SALV_BS_XML_VERSION with parameter value 2.2 in user's profile.
    Now we are facing other problem at the time of exporting FAGLB03 report to XML format we have set 5 decimal places for GBP currency, while exporting to XML the system shifts decimal places below example will clearify bit more
    E.G - Actual figure is 11,976,609.60788 but in XML format decimal places shifted 11976609607.88
    Please help me in this regards,
    Sany..

    Hi,
    The solution in the note is :
    Solution
    SAP NetWeaver 7.00
    Import Basis Support Package 21.
    SAP NetWeaver 7.01
    Import Basis Support Package 6.
    Alternatively, please implement all of the followings notes to solve the problem:
    1391325
    1393974
    1394178
    1400534
    So, you have implemented one of the notes in the alternative solution, please check.
    We had the same issue and BASIS implemented this note and this got resolved.
    Regards,
    SAPFICO

Maybe you are looking for