Solved

CR 10 RDC: Callback for report creation progress?

Posted on 2004-09-16
8
805 Views
Last Modified: 2010-05-18
We use CR 10 Developer (English), and we embed the RDC (= the "reporting engine" of Crystal) into our Windows application. (We use the RDC through its COM interface, in C++.) We use the RDC for exporting reports into PDF files. When our app is exporting a report, the Crystal engine pops up a dialog titled "Exporting records" that shows the progress of file creation (X records out of Y, Z% done).

Our problem with that dialog is that it's in English, and in the Japanese/Chinese/... versions of our app, we want to display a progress meter in Japanese/Chinese/... . AFAIK, if we bought one copy of CR 10 in each required language, then we might be able to replace some of Crystal's language resource DLL's, and then the dialog would be displayed in the corresponding language.

But we don't want to buy those extra copies; instead, we would like to hide the "Exporting Records" dialog, and replace it with our own progress meter. For that, we'd need a way to get info from the RDC on how exporting is proceeding. The most obvious way would be a callback function - do you know whether that's possible?  

Thanks,
Bence Kodaj
0
Comment
Question by:Geomagic_Hungary
  • 4
  • 2
  • 2
8 Comments
 
LVL 19

Assisted Solution

by:GJParker
GJParker earned 100 total points
ID: 12073712
Bence

I stand to be corrected but I would be very surprised if this was possible, the progress information will be handled by high level API calls from the relative export dll.

Gary
0
 
LVL 42

Accepted Solution

by:
frodoman earned 400 total points
ID: 12074070
Bence,

I agree with Gary.  I've gone hunting for this information before when I had an app that took a few seconds to export a report.  Sadly I was unable to find anything that exposes the export status.

frodoman
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12074490
I believe there is a flag that can be set.  I don't have Crystal readily available but as I recall it is either a property like

crRpt.DisplayExportDialog = FALSE
crRpt.EnableExportDialog = FALSE

or it is an argument on the export call

crRpt.Export FALSE

If I get a chance I'll double check

mlmcc
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 19

Expert Comment

by:GJParker
ID: 12074831
mlmcc

crRpt.Export FALSE

indicates if user should be prompted for export values.






0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12075191
Thanks.  It may also be I am thinking of the printer dialog.  

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12077953
Another thought

crRpt.DisplayProgressDialog = False

mlmcc
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12077979
That might work to hide the dialog.  It doesn't help w/ getting the export status, but you could always consider doing something less specific than a progress bar - an hourglass cursor or a simple animated gif that loops to indicate that something is happening w/out committing to the 'percent complete'.  Just a thought...
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12079988
I am fairly certain we were able to suppress that but we stopped allowing an export in most cases so the code has gone away.  It may also have been when we were using the OCX control rather than the RDC.

mlmcc
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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