?
Solved

VB/Crystal Reports 9/CSV Export

Posted on 2003-03-06
9
Medium Priority
?
420 Views
Last Modified: 2011-10-03
Using the Crystal automation objects (CRAXDRT), I'm trying to export a detail-only [headers and footers suppressed] report created in Crystal 9. The desired file format is character-separated value with a comma as the field delimiter and nothing as the string delimiter. When I attempt this using the following code, a comma is used for both the field and string delimiter, resulting in 3 commas between each field (,Field1,,,Field2,,,Field3,)

        Set oExport = MyReport.ExportOptions
        oExport.Reset
        oExport.FormatType = crEFTCommaSeparatedValues
        oExport.CharFieldDelimiter = ","
        oExport.CharStringDelimiter = ""
        oExport.DestinationType = crEDTDiskFile
        oExport.DiskFilename = "C:\MyFile.txt"
        MyReport.Export False

The report exports fine from the IDE.

Thanks,
Patrick Martin
0
Comment
Question by:pmartin73
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 8084247
What happens if you set oExport.CharStringDelimiter to " " (one space)???

Dabas
0
 
LVL 10

Expert Comment

by:aeklund
ID: 8084365
Try this:
  oExport.CharStringDelimiter = Chr(34)
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8085415
oExport.CharStringDelimiter = """"

mlmcc
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:aeklund
ID: 8088781
I guess we all have the same idea going here.
0
 

Expert Comment

by:CleanupPing
ID: 8900547
pmartin73:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 

Accepted Solution

by:
pmartin73 earned 0 total points
ID: 8901957
This is a bug in the Crystal Report Designer Component 9. There is a hotfix to resolve this issue:

http://support.crystaldecisions.com/library/kbase/articles/c2012708.asp
0
 

Expert Comment

by:CleanupPing
ID: 9056514
pmartin73:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 27

Expert Comment

by:Dabas
ID: 9056542
If you want to get a refund for this question, post a zero-point question in http://www.experts-exchange.com/Community_Support/

Subject: Moderator Please Refund Points
Body: Please PAQ/Refund this question:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20541645.html
Reason: I answered the question myself
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 9074252
pmartin73, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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