Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set the "New page after" formula

Status
Not open for further replies.

johanasplund

Programmer
Dec 13, 2001
9
SE
Hello

Is it possible to change the "new page after" formula at runtime from VB6?

Br
Johan
 
That might depend on which integration method you are using.
(faq149-237 OCX, RDC, API, Automation Server)

The RDC is the most likely to have a direct property for this. But you could always create a formula field in your report, use it for the property formula, and then pass the formula field a new formula at runtime. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Sorry i dint not include all info.

Im using RDC and i add all objects in the report from VB6.

So what i do i to add a group using the oCRReport.AddGroup
and after that i do
Set crSection = oCRReport.Sections.Item([Added section name])

crSection.NewPageAfter = True

But i cant find a way to set the New Page After formula.

Br
Johan
 
I don't know that property, but it might exist.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
You could also place a formula in the conditional "New Page After" and base that formula on a parameter.

Changing the parameter.....changes the formula ....dynamically changes the new page after

a thought....Jim
 
Ngolem,

Probmlem is that the group doesn't exist until runtime.
Johan is apparently using the Report Creation API to add groups on the fly.

Johan,

I believe that your application will require royalties to crystal Decisions because of the calls you are using, did you know that? Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Hello

When i talked to the company were we purchased the CR they said that i can have up to 5 concurrent users, comes with the software, without any extra license or im i wrong?
(5 concurrent, meaning that i can create 5 instances of the CRAXDRT report object.)

Johan







 
Sorry, I didn't realize your application was server based. If this application is server based, then I believe that you are correct. According to the license.hlp file "There is no differentiation between royalty-free and royalty-required runtime" files when building a server based application.

Ken Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
No problem. I didn't include that information so its not that easy to know.

But i have been searching the helpfiles some and found that there is a way to set the formula but then i have to use something called CRPEAuto instead of CRAXDRT.

Do u know what the difference is?

Dim objCRSection As CRAXDRT.Section
Dim objCRSection2 As CRPEAuto.Section

There is an option called SectionOptions on the CRPEAuto.Section but not on the CRAXDRT.Section and CRPEAuto.Section contains the correct properties that i want to use.

BR
Johan



 
That uses a different method for serving the report, the Automation Server as opposed to the RDC (rewriting much of your code). Since the RDC is the newest, it should be able to do everything that the Automation server does and much more. This could be an exception.

I wish I could tell you more. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Ok. Thank you for your time.
I will try to find a different solution to my problem.


Br
Johan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top