Exporting crystal in text format

HI Experts,
I am trying last three days to export my crystal report in text file, using crystal report RPT i cant see the text file format. I can see the Rich text format but i want the report to export .txt format so user can view the report through notepad application.
I have tried using CRAXDRT.DLL to export the report in text fomat, i got suceed in the machine SAP is not installed but when i am trying to run the same program on the machine were SAP is installed it is giving me error "ActiveX component cannot create object" when i run the application through VB.
When i try running the code through .Net appliaction (C#/.Net) it gives me error "System.Runtime.InteropServices.COMException: Retrieving the com class factory for component with CLSID {-some ID--}" failed due to following error: 800736b1. I am not sure why it is not working i got totally lost... Can you please help to get out of this?
Can some one provide me the sample code to export the report in the text file.
Looking forward for your help!
Regards,
Naresh

Ensure same version of crystal report is installed in the target machine, if needed uninstall, test , and install again to detect the issue and update this thread.

Similar Messages

  • Export report in text format

    Hi.
    I am still downloading the trial ver of cr 2008, but I would to know urgently that if it is possible to export report in utf-8 text format given the data is retrieved from ms/sql table in ucs-2 format
    Many Tks

    Hi,
    yes it is possible to export a report in text format.
    U just need to do a bit formatting for that.(only for display pupose)
    Regards,
    Misra P.

  • Crystal report : Export to Text format from BI Launch pad

    Hi,
    We are facing issue in exporting the Crystal report to text format option from BI Launch pad view mode. Currently BI launch pad doesn’t support export to Text format option for crystal report in view mode. But export to text format option is feasible in schedule mode. But customer is not interested in exporting the reports through schedule mode.
    Please advise, if we have any alternative way of exporting the crystal report to text format option from BI Launch pad.
    Thanks,
    Chinnu A

    Hi Chinnu,
    The question is better suited to be asked in the BI Platform space.
    -Abhilash

  • Export to excel with formatting was autowrapping text in a cell

    Export to excel with formatting was autowrapping text in a cell without having to check the can grow option.  When the can grow option is checked it does wrap the text however it spans multiple rows, which causes complications when trying to sort. 
    It worked in:
    ProductVersion=10.0.0.533
    ProductName=Crystal Enterprise 10 Embedded
    Doesnt work in:
    Crystal Reports 10.0 Service Pack 6
    After the upgrade the reports did not autowrap, b/c the "can grow" option was not checked.  I believe this was fixed by "ADAPT00305137 Patch ID: 36479914
    Description:
    When users export to Excel 97-2000 with the page-based format, text fields are wrapped, even when the "can grow" feature in the
    Designer is turned off." .   After we turn the option to grow on it does wrap however it spans across multiple rows.  So I guess my question is there a way for it not to span multiple rows when wrapping text?
    Edited by: dforde on Jan 27, 2010 11:12 PM

    I could be wrong, but I believe the export to excel option exports the database values, and the export to HTML exports the values seen in the sheets. If the database values are stored as seconds, the Excel will see them as seconds, and the data will have to be formatted properly in Excel.
    I haven't toyed around with Excel exports that much, but it might be possible to set up a template or macro in excel that would have the proper formatting, and use it when opening the Disco export.

  • Exporting Crystal .rpt to a fixed length text file

    Post Author: jnesbitt
    CA Forum: Exporting
    I am attempting to write a Crystal report that formats data to be exported to a fixed length text file. Each record will be made up of a number of fields with specific start locations and lengths. Is there any way to set the field start position and field length. I've been able to adjust the character per inch text export parameter to get close, but I can't update the paramete any longer.
    How can I reset the "Characters per inch" text export parameter?
    Version: Crystal 9.2

    Hi Jakob
    Take a look a this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353
    Regards
    DV

  • 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

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • Export to Text format

    When a report is exported to Text format, trailing spaces do not appear in the exported file.
    How do you resolve this issue?
    1. Create a report.
    2. Include 3 fields
    3. Export ->txt
    After the end of 3rd field we require 200 spaces...any idea...

    Try to insert a new formula after the third field like this
    space(200)
    or try to create a formula for the third field like this
    +space(200)
    and place this formula in the place of the third field and export to text file.
    Regards,
    Raghavendra

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • Exporting as CSV loses upper case text format

    Hi Folks,
    When I format a column of text to upper case and export the sheet as .csv, It reverts to whatever random format it had before. The column is for states in a list of addresses.
    I also wish I could format text in lower case if needed.
    Any ideas?

    In iWork's components, applying a style "uppercase" or "lowercase" doesn't change the case of the data. It just display it as asked.
    So, when we export in a text only format, we lose the style and grab the data as it was typed.
    I understand that the developper feel safe to keep the original data intact but here it may appear as an annoying feature.
    This is why I already asked them for added feature alloying us to really change the case as we wish.
    Of course, I don't know if they will insert these features.
    Yvan KOENIG (from FRANCE mardi 29 avril 2008 18:12:53)

  • Export to text - formatting

    Post Author: Ralphred
    CA Forum: .NET
    Im trying to export a report to a .txt from within a vs2005 program, using CRXIr2. I have been able to export to the text file through code since the option to export to text isn't available for some reason when in vs2005. The problem I have now is that when I try to change the Characters Per Inch Textformatting option they do not change and the report gets exported with the default of 12 characters per inch, and some of my data is cut off.
    Here is the code that I am using and would really appreciate if anyone knows a way around this and can help out.
    Thanks
    Public Sub ExportToText(ByVal ReportName As CrystalDecisions.CrystalReports.Engine.ReportDocument, ByVal ParamName() As String, ByVal ParamValues() As String)
    Dim MyReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument = ReportName
    Dim Field As CrystalDecisions.Shared.ParameterValues
    Dim Value As CrystalDecisions.Shared.ParameterDiscreteValue
    Try
    If Not ParamName Is Nothing Then
    For i As Integer = 0 To ParamName.Length - 1
    Field = New CrystalDecisions.Shared.ParameterValues
    Value = New CrystalDecisions.Shared.ParameterDiscreteValue
    Value.Value = ParamValues(i)
    Field.Add(Value)
    MyReportDocument.DataDefinition.ParameterFields(ParamName(i)).ApplyCurrentValues(Field)
    Next
    End If
    Dim exportOpts As New ExportOptions
    Dim diskOpts As DiskFileDestinationOptions
    diskOpts = ExportOptions.CreateDiskFileDestinationOptions()
    CrystalDecisions.Shared.ExportOptions.CreateTextFormatOptions.CharactersPerInch = 16
    exportOpts.ExportFormatType = ExportFormatType.Text
    exportOpts.ExportDestinationType = ExportDestinationType.DiskFile
    diskOpts.DiskFileName = "c:\exporttotext.txt"
    exportOpts.ExportDestinationOptions = diskOpts
    '**************************************** Here is where I set and nothing happens
    ExportOptions.CreateTextFormatOptions.CharactersPerInch = 16
    MyReportDocument.Export(exportOpts)
    Catch ex As Exception
    MsgBox(ex.Message, MsgBoxStyle.OkOnly, "Print Report")
    Finally
    MyReportDocument.Close()
    MyReportDocument.Dispose()
    End Try
    End Sub

    Yes. Use character styles, and map XML tags to the styles. It's the same process as for paragraph styles.

  • Crystal reports and formatted reporting.

    hi experts,
    i have a clarification about  crystal reports and formatted reporting.in what scenarios they are used..
    points ll be rewarded...
    thanks
    baskar

    Hi ,
    Crystal Reports is a powerful, dynamic, actionable reporting solution that helps you design, explore, visualize, and deliver reports via the web or embedded in enterprise applications. It enables end users to consume reports with stunning visualizations, conduct on-report business modeling, and execute decisions instantly from the report itself—reducing dependency on IT and developers.
    The report can then be previewed on the screen, printed onto paper or exported to one of several different file formats such as PDF, Excel, text or CSV.
    It is also possible to run a Crystal Report without using the full Crystal Reports designer software. These alternate methods for running reports include locally installed viewers, schedulers, and report distribution tools. These are typically third-party software programs (independent of Business Objects) that allow you to open, refresh, preview, print and export an RPT file. In 2007 Business Objects released their own viewer, Crystal Reports Viewer XI, but unlike the independent viewers it does not allow the user to refresh the report, but only to view static data saved in the RPT file.
    Thnx,
    Srinivas

  • Error exporting Crystal Report with VB Script

    I am working with Crystal Reports and attempting to export a .RPT file to a .PDF file using a VBScript called from InSQL. I can get the script to work properly if I require a user entry for file destination and name (.export true) but get the error message "Missing or out-of-date export dll" when I attempt to export the .RPT silently (.export false). The report also exports correctly when I manually initiate the export from within Crystal Report. Do you have any examples or solutions for this procedure? Thank you in advance.
    Here is my code for the VBScript export:
    dim rptfile, exportfile
    dim strDate
    dim objCRRpt
    dim objCRApp
    strDate = "_" & right("0" & month(now()),2) & "_" & right("0" & day(now()),2) & "_" & year(now())
    rptfile = UCase("C:\CompCriticalAlarmReport_Test\Report1.rpt")
    exportfile = "C:\CompCriticalAlarmReport_Test\criticalalarmreport" & strDate & ".PDF"
    Set objCRApp = CreateObject("CrystalRuntime.Application")
    set objCRRpt = objCRApp.openreport(rptfile)
    With objCRRpt
         With .exportoptions
         .formattype = CrEFTCrystalReport
         .diskfilename = exportfile
         .destinationtype = CrEDTDiskFile
         .usereportdateformat = true
         .usereportnumberformat = true
         End With
    .export (false)
    End With
    Set objCRApp = Nothing
    set objCRRpt = Nothing

    Ludek, I downloaded the VBA Sample application using the Microsoft Access Database and it is coming up with the same error as my VBScript for the PDF export. The error message for this application is "Run-time error '-2147190908 (80047784)': Failed to export the report."
    Private Sub Image47_Click() 'Exporting to PDF
    'Defines report's format type
    Me.crxReport.ExportOptions.FormatType = crEFTPortableDocFormat
    'Defines report's destination type
    Me.crxReport.ExportOptions.DestinationType = crEDTDiskFile
    'Defines report's file name
    Me.crxReport.ExportOptions.DiskFileName = "C:\MyPDFfile.pdf"
    'exports without calling the exporting dialog window
    Me.crxReport.Export False        <----ERROR OCCURS ON THIS LINE
    When I Run the application with Me.crxReport.Export True, the application executes without error and a popup appears prompting me to select the destination and format type. I need this to run automatically though without a user prompt.
    I have seen numerous topics regarding the exportmodeller.dll, crtslv.dll, and atl.dll files improperly registering or the incorrect versions causing export problems. Could this be causing problems with my export functions? Again, the reports export fine when I manually export them, I am just having a problem when I try to export automatically in any format (excel, text, pdf, rpt, etc...)
    atrain10

  • Exporting Crystal Report to HTML is not working in Windows 7

    Hi Sir,
    I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
    Below is the code to Exporting Crystal Report to HTML in VB.NET.
    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
    Dim CrFormatTypeOptions          As New HTMLFormatOptions
    Dim vFormat As Integer
    Dim CrExportOptions As New ExportOptions
    Dim vRdReport As New ReportDocument
    Dim sfd As SaveFileDialog
    Dim vFileName As String = Nothing
    vRdReport = vRptSource
    sfd = New SaveFileDialog
    If Not (vRptPath = "") Then
        sfd.InitialDirectory = vRptPath
    End If
    sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
    If sfd.ShowDialog = DialogResult.OK Then
        ' Set the disk file options.
         CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
    Else
         Return
    End If
    CrExportOptions = vRdReport.ExportOptions
    CrFormatTypeOptions.HTMLFileName = vFileName
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLHasPageNavigator = True
    CrFormatTypeOptions.UsePageRange = True
    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.HTML32
                        .DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
                        .FormatOptions = CrFormatTypeOptions
    End With
    vRdReport.Export()
    Catch ex As Exception
            MsgBox(ex.ToString)
    End Try
    Code working fine at Windows XP, But it is not woking in Windows 7 environment.
    Please can anyone share your valuable thoughts or ideas reg. this.
    Thanks in Advance
    Deivanayaga Perumal D.

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

  • Issue while exporting report in Excel Format

    Hello,
    I am facing problem while exporting the report in Excel Format. After analysis, I think that it could be due to two reasons, either we are using wrong versions of Jars, or we are using wrong API. Here is the code, approaches and problems we are facing. Please help.
    First approach we are using is:
    // using basic API
    import com.crystaldecisions.reports.sdk.ReportClientDocument;
    // get client document from crystal report API and open the report by specifying the report name, with path
                   ReportClientDocument reportClientDoc = new ReportClientDocument();
                   reportClientDoc.open( reportPath, 0 );
                   // give chance to extending classes to configure the report document by POJO or by sql parameter etc, just adding the parameters infromation using ParameterFieldController
                   configureReportDocument( reportClientDoc, reportMetadata, reportData, reportContext );
                   // get data source of crystal report
                   Object reportSource = reportClientDoc.getReportSource();
                   // export the data - we have also tried with MSExcel format
                   ReportExportFormat exportFormat =  ReportExportFormat.recordToMSExcel;
                   LOGGER.debug( "exportFormat[" + exportFormat + "]" );
                   ByteArrayInputStream byteArray = (ByteArrayInputStream) reportClientDoc.getPrintOutputController().export(
                             exportFormat );
    Problem Faced: Specified Excel format is not supported.
    Second Approach: We come to know that excel format is supported with new releases and with occa package.
    Then we tried with import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument; It ask to set the ReportServer. When we are trying to set the server as
                   reportClientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
    Application is unable to find 'ReportClientDocument.inprocConnectionString' property. It seems like we are using some old jars. However we have downloaded the latest released jars for eclipse 2.
    Please help for it. Issue is to export the report in excel format, which is currently working fine for PDF. If this problem is related to Jars, please suggest the path to download the latest jars. We also looking for the latest jars like rasapp and rascore etc. But these are not available with Crystal Report for Eclipse 2 release.
    Waiting for urgent help. Thanks you..
    Regards,
    Mohit

    Hi,
    Send me Environment Details .
    Here is the code  snippet for exporting report to excel format:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.managedreports.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <%
    String username ="Administrator";
    String password ="";
    String cmsname ="localhost:6400";
    String Authen ="secEnterprise";
         //connecting to Enterprise
         IEnterpriseSession es = CrystalEnterprise.getSessionMgr().logon(username,password,cmsname,Authen);
         //get the report App Factory form the Crystal Enterprise
         IReportAppFactory appFactory = (IReportAppFactory) es.getService("","RASReportService");
         //get the infostore service form the Crystal Enterprise
         IInfoStore istore = (IInfoStore) es.getService("","InfoStore");
         //get the report by name from crystal Enterprise
         IInfoObjects iobjects = istore.query("Select * From CI_INFOOBJECTS Where SI_NAME = 'sampleramz2.rpt' and SI_INSTANCE = 0 ");
         //open the report in the report doc object.
         ReportClientDocument Doc = appFactory.openDocument((IInfoObject)iobjects.get(0), 0, Locale.ENGLISH);
         // WORKING WITH THE PRINT OUTPUT CONTROLLER
         //Use the report documents PrintOutputController to export the report to a ByteArrayInputStream
         ByteArrayInputStream byteIS = (ByteArrayInputStream)Doc.getPrintOutputController().export(ReportExportFormat.recordToMSExcel);
         // EXPORTING THE REPORT
         //Create a byte[] (same size as the exported ByteArrayInputStream)
         byte[] buf = new byte[2000 * 1024];
         int nRead = 0;
         //Set response headers to indicate pdf MIME type and inline file
         response.reset();
         response.setHeader("Content-disposition", "inline;filename=ramz");
         response.setContentType("application/xls");
         //Send the Byte Array to the Client
         while ((nRead = byteIS.read(buf)) != -1)
              response.getOutputStream().write(buf, 0, nRead);
         //Flush the output stream
         response.getOutputStream().flush();
         //Close the output stream
         response.getOutputStream().close();
    %>
    Let me know any information is needed,
    Regards,
    Rameez

Maybe you are looking for

  • PDF printing failing to embed fonts

    I am an IT administrator over multiple machines each having various versions of acrobat (pro, std, 7, 8, 9, etc.).  We have a standard job options settings for all machines which forces embedding all fonts used in a document. We do this for compatibi

  • Problem met when call external exe in jar.

    hi all, in my java project, i call an external exe . i met a problem that sometimes the exe is not fully finished. How could i confirm that the exe is finished before i start to use the output of this exe. i use following code to call the external ex

  • Problem with videoformat

    Hi everybody, I'm new in JMF and I'm trying to develop an aplication to capture webcam video stream on a computer end send it to another computer by the Lan. I write the program and when I try to execute it some messages appear. These messages can be

  • Play multiple album art in ipod G5

    I can see multiple album art for a single song in itune by clicking on the right arrow above the image, but when I transfer the songs to ipod I can only see one of the images. and that is a reduced sized image, even if I double click the center butto

  • Upgrading from SL - Lion or ML?

    I just recently got the iphone 5s and want to take advantage of iCloud. I also would like to use some of the other apps ( Facetime, imessage, etc). Snow Leopard has been pretty stable for me. Main thing I do on my Mac is music. I use Logic Pro, Reaso