473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Export from Crystal Report

Hi all,

I have a big problem when I try to export from Crystal Report 8.5 in .pdf from VB6. I use a database made in SQL Server 2000.
The problem is that all the decimal fields in database are truncated in pdf when I export from VB6. For example, If I have 75.45, it will return 75.00. If I export the data direct from Crystal Report, it works fine.
I tried with some updates for Crystal Report, but with no result.
Please, help me!
Nov 29 '07 #1
3 6313
Dököll
2,364 Expert 2GB
Hi all,

I have a big problem when I try to export from Crystal Report 8.5 in .pdf from VB6. I use a database made in SQL Server 2000.
The problem is that all the decimal fields in database are truncated in pdf when I export from VB6. For example, If I have 75.45, it will return 75.00. If I export the data direct from Crystal Report, it works fine.
I tried with some updates for Crystal Report, but with no result.
Please, help me!
Hello acextreme!

Try this:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim crxApp As CRAXDRT.Application
  3. Dim myReport As CRAXDRT.Report
  4. Dim crxExport As CRAXDRT.ExportOptions
  5.  
  6. Set crxApp = New CRAXDRT.Application
  7. Set myReport = crxApp.OpenReport(App.path & {YourReportName}, 1)
  8.  
  9. With myReport
  10.     With .ExportOptions
  11.         .UseReportDateFormat = True
  12.         .UseReportNumberFormat = True
  13.         .FormatType = crEFTPortableDocFormat
  14.         .DestinationType = crEDTDiskFile
  15.         .DiskFileName = App.path & "{YourFileName}.pdf"
  16.     End With
  17.     .Export False
  18. End With
  19.  
  20.  
Perhaps you can mimmick to fit your purpose. Be sure all of your DLLs are properly installed;-)

Let us know if that works!

Dököll
Nov 30 '07 #2
Hello acextreme!

Try this:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim crxApp As CRAXDRT.Application
  3. Dim myReport As CRAXDRT.Report
  4. Dim crxExport As CRAXDRT.ExportOptions
  5.  
  6. Set crxApp = New CRAXDRT.Application
  7. Set myReport = crxApp.OpenReport(App.path & {YourReportName}, 1)
  8.  
  9. With myReport
  10.     With .ExportOptions
  11.         .UseReportDateFormat = True
  12.         .UseReportNumberFormat = True
  13.         .FormatType = crEFTPortableDocFormat
  14.         .DestinationType = crEDTDiskFile
  15.         .DiskFileName = App.path & "{YourFileName}.pdf"
  16.     End With
  17.     .Export False
  18. End With
  19.  
  20.  
Perhaps you can mimmick to fit your purpose. Be sure all of your DLLs are properly installed;-)

Let us know if that works!

Dököll

Nope, It didn't work. This is the code that I used (or something like it). :((
I'm thinking if I can change the sql query from crystal making a conversion from decimal into float it will work....But I didn't succed to change it. And I read from some forums that sql query can not be changed.
Dec 3 '07 #3
I find the problem.....I install Crystal Report 11 and use C:\Program Files\Common Files\Business Objects\3.0\bin\craxdrt.dll.
The code remain the same. It was only the .dll.
Dec 3 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Tim Jones | last post by:
Hey all, I am trying to try get a crytal report running properly. A "Hello World" report that does not add criteria to the record selection formula of the report (either in the development tool,...
3
by: Colin Graham | last post by:
Error when attempting to export Crystal Report as PDF document asp.net. I get the following error. Error in File...
6
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel...
1
by: John | last post by:
Hi. Sir: Does anyboday know how to export subreport data using the export button in crystal report tool bar? We have a main report including a on-demand report. When we click the on-demand...
0
by: suicidaltendencies | last post by:
I'm able to view the report, but when I click the button on the webpage that shows the report to export into a different format it gives me an error on Export. Any help would be great I keep...
0
by: Leonard Danao | last post by:
Anyone have any ideas as to why this is happenning. There are no other versions of Crystal installed aside from the one that came with vs2003 enterprise. the error happens when the...
1
by: ElanKathir .S.N | last post by:
Hollo Guys, I want to export my crystal reports (Crystal Report 9.0) to word format using visual basic 6.0. Means I want to export the reports with out preview. Now showing report using...
0
by: Henry | last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that uses MS Access 2000 as its database. I can export reports that have no linked sub reports for printing. However, I'm unable...
3
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.