Clicky

Hi Experts,

I recently upgraded my code from Delphi 2007 to Delphi 2009. I also tried to move the crystal reports engine from VCL 7 to 11.

I have it all working fine, except when i execute the report the report requires me to pass parameters before execution.

For some reason, the parameter dialog is displayed first then when i press cancel the report execute fine.

Is there a way to turn that dialog off so it is not displayed?

Thank you in advance. :)



Trevor

asked 11/17/2011 09:00

trevsoft's gravatar image

trevsoft ♦♦


12 Answers:
Does the report use parameters?

How are you calling the report?

mlmcc
link

answered

mlmcc's gravatar image

mlmcc

Hi mlmcc,

Im calling the report from within the Crystal Reports VCL.

Im then passing parameters to the report which is successful.

I then execute the report, sucessful too.

Then once the report loads or starts to load, i get the parameter fields dialog box.

I press cancel in that dialog box and everything works fine.
link

answered 2011-11-17 at 19:47:15

trevsoft's gravatar image

trevsoft

What code is used.

In the VB API there is the ability to set parameter prompting to false.  I haven't used the VCL or Delphi but a similar method or property on the report should be there.

mlmcc
link

answered 2011-11-17 at 20:18:02

mlmcc's gravatar image

mlmcc

Hi mlmcc,

Can you show me the VB code, i may be able to translate it or find it in the VCL.



Trev
link

answered 2011-11-17 at 20:41:43

trevsoft's gravatar image

trevsoft

I believe it is

crRpt.EnableParameterPrompting = False

mlmcc
link

answered 2011-11-17 at 20:44:33

mlmcc's gravatar image

mlmcc

Hi mlmcc,

I tried looking for that EnableParameterPrompting and all i can find was ParamFields.AllowDialog := False;

But when i execute that code it doesnt work.



Trev
link

answered 2011-11-17 at 21:00:03

trevsoft's gravatar image

trevsoft

AS I said, I haven't used the VCL.

This document may help but I don't see where it is turning off the prompting
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/70533725-7926-2c10-f3b5-dd99fcfcd482?QuickLink=index&overridelayout=true

mlmcc
link

answered 2011-11-17 at 23:53:02

mlmcc's gravatar image

mlmcc

Hi mlmcc,

Your right there really isnt anything about prompting there.

There is a reference thought that Crystal Reports XI Release 2 may have a limitation for prompting/cascading parameters.

So maybe rolling backup to release 1 or upgrading to Crystal Reports 2008 may fix the issue.

Other than that im kinda stuck on this one im not to sure where in the VCL i can turn of prompting.

I would have thought that the CRPE.ParamFields.AllowDialog (True/False) would have turned the dialog off.

Maybe there is a fault in the VCL somewhere.



Trev
link

answered 2011-11-18 at 08:34:23

trevsoft's gravatar image

trevsoft

The cascading is a new feaure of CR XI.

mlmcc
link

answered 2011-11-18 at 19:31:59

mlmcc's gravatar image

mlmcc

Hi mlmcc,

But i couldnt have been using cascading parameters cause i was using Crystal Reports 7.



Trev
link

answered 2011-11-18 at 20:07:10

trevsoft's gravatar image

trevsoft

Did you upgrade the reports to CR XI from CR7?

mlmcc
link

answered 2011-11-18 at 21:20:19

mlmcc's gravatar image

mlmcc

Hi I tried to upgrade and save the reports also to see if it makes a difference but it didn't.

Trev
link

answered 2011-11-18 at 21:43:46

trevsoft's gravatar image

trevsoft

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1
×44
×2

Asked: 11/17/2011 09:00

Seen: 341 times

Last updated: 12/06/2011 01:56