Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Preserve Text Export Formatting Post Reply Post New Topic
Author Message
wolfgang666
Newbie
Newbie


Joined: 16 Dec 2008
Location: United States
Online Status: Offline
Posts: 1
Quote wolfgang666 Replybullet Topic: Preserve Text Export Formatting
    Posted: 16 Dec 2008 at 1:00pm
I have created a report that I need to export as text so it can be renamed into a VBS file. Everything works except that when the report is exported the formatting get's all messed up and the VBS will no longer compile. Is there any way to export to a text file and preserve the formatting exactly as it appears in the report? What I need is to have the line breaks appear exactly as it does in the report. What happens is when exported to text it just places the line breaks wherever so it chops off right in the middle of a line of what would be code. See below for an example:
 
Here are the first couple of lines in the report:
 

Const olAppointmentItem = 1

Set objOutlook = CreateObject("Outlook.Application")

Set objAppointment = objOutlook.CreateItem(olAppointmentItem)

 
Here are the same 3 lines as they appear when you export from Crystal to a text file:
 
Const olAppointmentItem = 1 Set objOutlook = CreateObject("Outlook.Application")
Set objAppointment = objOutlook.CreateItem(olAppointmentItem)
 
As you can see the line breaks were not maintained so when the file is renamed to .vbs it will not compile. Any thoughts on how to export to text and preserve the line breaks? I am using Crystal Reports 11. Thanks for any ideas.
 
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.