Crystal Export Problem

I am using VB 6.0 and ADO 2.1 in my application and i am using SQL Server 6.5 for my database.
And i am generating reports using Crystal Reports (7.0) from my application. Once i generate the Report
i want to export this report into Access. When i tried to do this from my VB application it is not doing anything and not even showing any error. But when i tried to do same thing from Crystal Software it is doing fine.

Do i need to add any more references to my VB application i tried adding several references but it is not working. For example i added references like "Crystal Report Export", "Crystal Reports 7 Library" etc.,

Thanks
svenkatapuramAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chewhoungCommented:
what do you mean by export the report to access?
0
svenkatapuramAuthor Commented:
There is a export button in Crystal. It has several options to export your data from Crystal Repports to others like into text, excel, Access etc. It is working for others except for Access.
0
ca_hecklerCommented:
I'm doing that without problems, code looks like bellow.  Just dont forget that the table must not exist ...

      rptReport.Destination = crptToFile
      rptReport.PrintFileType = crptODBC
      rptReport.PrintFileODBCSource = "MY_DSN"
      rptReport.PrintFileODBCUser = "my_user"
      rptReport.PrintFileODBCPassword = "my_pwd"
      rptReport.PrintFileODBCTable = "my_NEW_table"
      rptReport.Action = 1

Heckler

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

svenkatapuramAuthor Commented:
i tried, but i am getting an error message showing "error detected by export dll"
0
ca_hecklerCommented:
Suggestions ...

- try a MDB file generated by a older version, like Office 95.  

- If you are not using Crystal Reports 7 MAITENANCE RELEASE 1 (also MR1), check their website to see if there is something related to this issue that MR1 correct.

- Check ODBC components version (about tab), make sure its all same version and up to date.

CAH
0
svenkatapuramAuthor Commented:
CAH,

Any way i should give you the points, you have been trying to help me. I am going to check for the MR1.

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.