Export Crystal Reports from VBA (Crytsal 11)

Hi,

Have been using the following code for a little while to export Crystal 9 reports to pdf and then email

have now upgraded to CR 11 and get a message that the report was created in a different version and then i have to verify the database

Does anybody know of a way of hiding these messages, i run the app over night and want it to progress automatically without having to click ok to all the prompts.
Dim appl As New CRAXDDRT.Application
Dim rep As CRAXDDRT.Report

Set rep = appl.OpenReport("D:\NA_RMA\snhist.rpt", 1)
rep.ExportOptions.DiskFileName = "D:\NA_RMA\snhist.pdf"
rep.ExportOptions.DestinationType = crEDTDiskFile
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.Export False

Open in new window


I use crviewer9.dll and craxdrt9.dll , cant find a cr11 version of these files to try

Any help would be great

Thanks
JapesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
Open the report in Crystal Designer and use the menu option of
Database, Verify Database...

Then, save the rpt.
0
JapesAuthor Commented:
Thanks, but i think the problem is more to do with using version 9 of craxdrt and crviewer with reports written in cr11, if i verify the database in cr11 i still get the message relating to the report being written in a different version of the software when running my app

0
mlmccCommented:
Which edition of CR XI do you have?
If you have the developer or advanced edition you should have CRAXDRT for CR XI available.  You could upgrade the app to use it.

mlmcc
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
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

JapesAuthor Commented:
Thanks,

Just purchased CR XI Developer as only had standard before, should be available for download soon, will try tomorrow.

Thanks for taking the time to advise - i will be overjoyed if it is the solution!
0
mlmccCommented:
You should just have too update the application to use the CR XI CRAXDRT and CRViewer.

mlmcc
0
mlmccCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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
Crystal Reports

From novice to tech pro — start learning today.