Crystal report not able to export in EXCEL file in windows 7

Hi Expert,
I have an Form, in which there is a button print.  when I press Print button Crystal report open with data. upto here is fine with any operating system (OS).
When I press Export report in XP it working fine, ShowDialog is show on screen where I have to save this file. but When I run as application on windows 7 I got  below as error
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made .......
rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
            rptView.ReportSource = rptDoc
            rptView.Show()
            Dim oFrm As New System.Windows.Forms.Form
            rptView.DisplayGroupTree = False
            rptView.Dock = System.Windows.Forms.DockStyle.Fill
            rptView.Location = New System.Drawing.Point(0, 0)
            oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
            oFrm.Controls.Add(rptView)
            oFrm.Name = "Report Viewer"
            oFrm.Text = "Report Viewer"
            oFrm.ResumeLayout(False)
            oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
            oFrm.TopMost = True
            oFrm.ShowDialog()
        Catch ex As Exception
            objMain.objApplication.MessageBox(ex.Message)
Can you please tell me why is I am not able to export report on windows 7 thru Crystal report
Thanks
Kevin

Hi Kevin,
You may check: Error in Export to PDF for crystal reports
Thanks,
Gordon

Similar Messages

  • Crystal Reports XI: formatting and exporting to Excel (VB 6)

    Hi.
    I have a VERY simple report that all I want it to do is display the numbers from a table EXACTLY as formatted and be able to export them to Excel, as NUMBER (not STRINGS).
    Example:
    My fields may contains the following values in a single column:
    45.02
    0.04454
    215
    And I want them to be displayed as entered in the source table.
    Initially, to maintain the formatting, I set the field's data type to a STRING.
    The problem is that when I then export the data to Excel, all the numerical values are treated as TEXT and we need to "Convert Text to Numbers".
    When I changed the field's data type to a DOUBLE, the data in the table is correct, but the report formats all the numbers in one way.  I want to be able to retain the formatting of the field (as-is) but have them exported as numbers, rather than text.
    Can this be done?
    Please advise!
    Thanks.
    AK

    I actuallly found my answer elsewhere (http://www.tek-tips.com/viewthread.cfm?qid=1235276&page=4).
    The Decimal formattion (x=2) for the fields can be set as follows:
    If CurrentFieldValue = Int(CurrentFieldValue) Then 0Else If CurrentFieldValue * 10 = Int(CurrentFieldValue * 10) Then 1
    Else If CurrentFieldValue * 100 = Int(CurrentFieldValue * 100) Then 2
    Else If CurrentFieldValue * 1000 = Int(CurrentFieldValue * 1000) Then 3
    Else If CurrentFieldValue * 10000 = Int(CurrentFieldValue * 10000) Then 4
    Else If CurrentFieldValue * 100000 = Int(CurrentFieldValue * 100000) Then 5
    Else If CurrentFieldValue * 1000000 = Int(CurrentFieldValue * 1000000) Then 6
    ElseDefaultAttribute
    Basically - this works.
    Hope this helps someone else!
    Thanks.
    AK

  • Crystal report not able to see a SQL view in Business One

    Hi all
    I am trying to create a report using views I have created in the Business One database.
    I can run the report fine when using the Crystal Designer, but when I try to Preview the external Crystal report file from within Business One, it comes up with an error 'The table 'xxxx' can not be found'.
    I have tried to make the connect an SAP Business One connection, and also tried it with the OLEDB connection.  Neither worked.
    (I can however preview other 'table' reports fine)
    I am running SAP B1 8.8 SP 0 pl 15 and SQL2005.
    As views are allowable in B1 databases I would hope that we can use them in our Crystal reports.  Can we use views?
    Or is it my setup/Crystal setup that is causing me issues.
    Any help much appreciated.
    Thanks
    Denise

    Hi Gordon and Kevin
    Thank you both for your replies.
    Gordon - great idea to use the Command mechanism. I had not thought of that but will give that a try.
    Kevin - pleased to hear views are allowed as I often use them in my reports.
    I think I have a more basic issue with my setup of Crystal & B1 on the system - and perhaps this is causing my inability to use views. 
    My current approach is to install Crystal Designer on the server.  I know that it is preferable to put the designer elsewhere but I am not able to connect using SAP Business One connection at all from the client machines.  Frustration! (Keeps saying Logon failed and I KNOW I have the correct logon details)
    Will update this thread once I have set up the designer on the server and hopefully succeeded in including a view (or command) in a report.
    Thanks for your help
    Denise

  • Not able to add an excel file as data source to create new values in the mapped domain

    Hi
    I am trying to use some sample data from an Excel file to improve the quality of a Knowledge Base I have created in the Data Quality Client. I followed the following steps:
    Knowledge Discovery
    Data Source: Excel File
    Browsed to the Excel File on my local drive.
    I'm getting the following error: Failed reading Excel File
    I have checked the security settings, and provided full control to the user. I'm not sure as to what is the issue here. I
    am totally new in this field and with my little knowledge trying to build a Knowledge Base. But the hurdle stopped me.
    Thanks in Advance

    Hi
    You can add a  Excel file as the data source for a universe,  below are the steps.
    Ensure that the following steps are done before inserting a table from Excel sheet into a universe.
    1. Go to Excel and highlight all the cells that you want in the same table.
    2. Go to the Name box from Insert->Name->Define and give a name (in Designer, you see this name as a table of all the values you have selected).
    3. Go to Designer and pop up the table browser. You have to drag and drop the name you gave.
    and check the SP of ur BO.
    you can use .xls file as datasource but you cannot use .xlsx(windows 2007) .
    Regards,
    Rajesh

  • User is not able to download specific excel file in sharepoint

    Hi,
    Could you please help?
    thanks
    srabon

    Hi Srabon,
    According to your description, my understanding is that you cannot download the excel file from SharePoint.
    I recommend to check if the Download a Copy buttons can be used in the Excel web app and in the ribbon of the library.
    If both the two buttons cannot work, I recommend to check the permission of the user on the excel file and check if the Information Rights Management is enabled in the library.
    When Information Rights Management is enabled in the library and the user has only read permission on the document, then the file cannot be downloaded.
    http://office.microsoft.com/en-in/sharepoint-help/apply-information-rights-management-to-a-list-or-library-HA102891460.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Not able to run the mxml file (Browser window is not launching)

    Hello All,
    I have flex 2.0 version installed on my window xp desktop. I have created one very simple form using TextInput and Label (Like:Video 04: Using Pre Built Flex Controls) but when I am clicking on the "Run" button at top near Print icon nothing is happening and I am not able to see form in browser window( window is not launching).
    I have attached the flex project screen shot. (ProjectScreen.gif)
    Do anyone have any idea why it is happening.
    I would appreciate your help.
    Thanks & Regards,
    Chetan Tyagi

    Got It !!
    I have re-installed the flex builder 2 again and now its working file.

  • Crystal Report Viewer | Issue Default Exporting to Excel

    hi,
            if any 1 of the column is empty in the report then when exported to the excel the null valued column value is printed by the next column.
    For example if i have  columns such as A,B,C and B has null values, then B is replaced by c.
    Is this a bug?
    Thanks and regards,
    Dhinesh B

    Editable RTF, because of the static nature of header and footer information, has restrictions on field display mapping Crystal page numbering to Word page numbering.
    RTF export does not, since header and footer information is not placed in header and footer, but in the body itself as static text.
    Sincerely,
    Ted Ueda

  • Not able to open a .pcz file in Windows XP

    i have a .pcz file which i want to open in my win xp system.
    hope somebody cud help me out in this issue.

    Templeton has done you a service and provided you information about what kind of file you have. I'll add to that and point you to this page on www.versiontracker.com. The software here may or may not convert your file but you'll need to determine that yourself.
    Both of us used simple search tools on the Internet to help you. While folks here are glad to answer questions, online forums are best used after you've tried to answer the questions for yourself. If you've already tried to answer your own question, please indicate what steps you've taken. This will help others better determine the complexity of your question and help them avoid repeating your efforts.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.5)  

  • Not able to export web analysis report to excel smart view from workspace

    Not able to export web analysis report to excel smart view from workspace.
    Error :Web launch operation has been cancelled.
    Can anyone help me to resolve this issues

    I realized that I can put a block in WebI and then I can pull that in excel alongside of static header, after putting the question.
    My interest to know whether it is by design in XI 3.0 or it is an issue. But by the replies it seems to me like it is by design.
    @Anis: I can't go for header as part of Body. Because this report is viewed in Web by many other users. I can't have separate report for Live office, it is a restriction for me. If I use the header in body, it wont look good I guess.

  • HTTP 500 - Internal server error - not able to Export BI report to Excel

    Hi,
    We just upgraded to HFM 9.3.1.4. Unfortunately we are not able to Export BI report to Excel (in Workspace and in BI Studio). We receive the error message "HTTP 500 - Internal server error" (this worked fine in 411).
    We are able to preview in PDF and HTML, but not Export to Excel. We also just restarted the services for workspace and web analysis, but still the same issue.
    Anyone have any idea what is wrong?
    Thanks for your help!

    Hi Varun,
    We just restarted the financial reporting services, but still receive the same error message.
    Any other idea?
    Thank you for any help.

  • Not able to export all the rows into excel

    Hi All,
    I'm not able to export all the records in discoverer report to excel sheet.
    There are actually 27000 records in discoverer report, when i export them to excel sheet i can see only 16000 records.
    I'm using discoverer plus.
    Any suggestions...please share with me.
    Thanks in advance,

    Hi,
    Do you have parameters on the worksheet? if so then are you selecting same as when you ran it?
    What version are you using ? Plus? Viewer? Desktop?
    You can export the worksheet into CSV instead of XLS and see what you get.
    Also check other formats to see if this missing lines happen in all export methods or just the XLS.

  • End users not able to export a report to a spreadsheet

    Hi Gurus,
    My end users not able to export a report to a spreadsheet..
    version     : ECC 6.0
    Release    : 7.10
    support Package 14
    Currently the end user has 6 choices for creating spreadsheets if the selecte the "All Available Formats" option when generating a spreadsheet. Those options are:
    Excel (in MHTML format)
    Excel (in MHTML format for 2000/97)
    Excel (in Office 2003 XML format)
    SAP internal XML format
    SAP Standard (internal table)
    Excel (in Existing XXL format)
    When they are trying to use format " Excel (in Existing XXL format) " Below error is coming..
    save XXl list object in SAP Office
    Name for list object            ALVXXL01
    Title for SAPoffice              -
    as per sap Note 1080608 it's support only * Excel (in previous XXL format) format,
    My question is  * Excel (in Existing XXL format) and * Excel (in previous XXL format) are same.
    If yes why its not allowing to Excel (in Existing XXL format)... ? Am waiting for you valuable suggestions..
    Best Regards,
    RK

    Dear, all
    When they are trying to use format " Excel (in Existing XXL format) " Below error is coming..
    save XXl list object in SAP Office
    Name for list object ALVXXL01
    Title for SAPoffice
    Please sujest how to solw this problem
    Mayur Tandel

  • Any ideas on how to merge 2 reports on page to export to Excel or PDF?

    This is for OBIEE 11g (we are currently running 11.1.1.6.8). We have a user requirement to put the prompt selections on each report that is exported to Excel or exported to PDF. This requirement has to do with auditors. We cannot use the Filter Criteria view because we have saved filters that contain other saved filters so not all of the filters are shown. What the users want is to just have the ability to Export to Excel or PDF for one report and add the prompt criteria so that it also shows in Excel or PDF. We know we can use presentation variables and create a narrative view to show all of the prompt criteria. But we don't want to have this in a view in the compound layout of every report on the page (we have many pages with many reports on them). What we would like to do is have the Export (to Excel or PDF) download the prompt criteria (like when you use the printable HTML and printable PDF functionality only we want this for one report). So think of merging the report that is being Exported to Excel or PDF with another report that is built to show the prompt criteria. Is anyone else doing this kind of functionality? Any ideas on how to do this with javascript?
    We created an SR on this to find out if Oracle had some ideas but they did not and said that this is already an enhancement request ( Bug 8242921: ALLOW PROMPTS TO BE DISPLAYED WHEN DOWNLOAD TO EXCEL)
    Any help would be appreciated. Marybeth

    Did u tried the first method? i.e directly exporting the analysis to excel?
    Thanks.

  • My Numbers file sent to somebody is not able to open in Excel can anybody help to solve this problem?

    my Numbers file sent to somebody. He is not able to open in Excel can anybody help to solve this problem?

    Numbers files are not compatible with MS Excel.  To share a Numbers file with Excel you need to export you Numbers file in MS Excel format.  To do this:
    1) Open you Numbers document
    2) select the menu item "File > Export..."
    3) select "Excel" for the target output
    4) click next and select where to save the file.
    5) email the file you saved

  • Faxing a Crystal Report that has been exported to a PDF

    Hi. I am having a problem trying to fax a Crystal Report that has been exported to a PDF. I am using Windows XP Pro SP3, VB.Net 2008 and the Crystal Reports that came with it. The report exports to a PDF with no problem.  Generally, I can fax a document by putting <TOFAXNUM:12481234567><NOCOVER><DELETE><FINE> at the beginning of a document and send it to my fax printer.  The fax printer requires the <embedded code> to be in a printer font rather than a true type font. I put the embedded code as a report header on the report using Courier font, but it has a problem when it converts my font. I'm pretty sure the problem has to do with converting my font before it sends it to the printer.  Is there a solution in Crystal Reports to convert the font to printer font?

    I am using Table Adapters to filter my data from multiple Sql tables and processing the data using VB.net 2008. Once I have the data, I write it to temporary tables which are the data source for my Crystal Report. The Sql queries are not part of the Crystal Report designer. Within the VB.net , I export the report to a stream in PDF format. The VB.net code is done. I'm looking for a way to fax the report without having to re write my entire code. I don't think the report can be exported thru the designer the way I have my data sources set up.

Maybe you are looking for