[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2083
  • Last Modified:

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
0
svenkatapuram
Asked:
svenkatapuram
  • 3
  • 2
1 Solution
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now