Crystal Reports, RTF and WordPad

Posted on 2007-10-07
Last Modified: 2012-08-13
I have a Crystal Report (v XI) that save to an RTF at the push of a button on a VB6 form.  It's fine when I open it with Word, but when I open it with WordPad, every cell gets its own line.  I tried changing the formatting in WordPad -- to little success.  

I noticed it looks better when I export a report to a "Microsoft Word - Editable (RTF)".  How do I export it like that programmatically?  What follows is my code:

    rptOptical.ReportFileName = App.Path & "\Optical.rpt"
    rptOptical.ReportTitle = "Incubator " & iIncubatorNumber
    rptOptical.Destination = crptToFile
    rptOptical.PrintFileType = crptRTF
    rptOptical.PrintFileName = dlgSaveRpt.FileName
    rptOptical.Action = 1

Thanx in advance
Question by:brightak
    1 Comment
    LVL 100

    Accepted Solution

    The metrhod you ae using cannot export to edittable RTF.

    You need to use the RDC.

    Is that code working?  It looks to be code for CR 8.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now