Solved

CR 10 RDC: Callback for report creation progress?

Posted on 2004-09-16
8
804 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
 
LVL 19

Expert Comment

by:GJParker
ID: 12074831
mlmcc

crRpt.Export FALSE

indicates if user should be prompted for export values.






0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now