Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

crystal 6.5 to .NET - Section Map equivalent

$
0
0

I'm working on upgrading one of our products from using Crystal 6.5 to 10.5 .NET components.  The old code uses the crpe32.dll engine, making calls to the various PE functions.  The biggest hurdle I'm having at the moment is replacing PESetSectionFormat and the "section codes" it uses.

 

I know the new version has:

GroupHeaderSection1

GroupHeaderSection2

GroupHeaderSection3

GroupHeaderSection4

 

But I don't know for sure how to tell which ones are something like

GroupHeader1a     - (section 3000)

GroupHeader1b     - (section 3025)

GroupHeader2       - (section 3001)

GroupHeader3       - (section 3002)

 

 

I'm looking for a generic way to know that "GroupHeaderSection2" is actually "GroupHeader1b" instead of "GroupHeader2".  We have over a hundred reports using the PESetSectionFormat, and trying to avoid redoing the old templates with formulas or parameters to suppress the necessary sections based on user selections.  Hopefully I've just missed something obvious when searching for the answer.

 

 

Section Map from 6.5

 

The following map shows the pattern of section code assignment:

 

Report Header   

1000    First Section in Report Header Area

1025    Second Section in Report Header Area

1050    Third Section in Report Header Area

1075     Fourth Section in Report Header Area

up to 1975    40th Section in Report Header Area

Page Header   

2000    First Section in Page Header Area

2025    Second Section in Page Header Area

2050     Third Section in Page Header Area

2075     Fourth Section in Page Header Area

up to 2975    40th Section in Page Header Area

GH1   

3000     First Section in First Group Header Area

3025     Second Section in First Group Header Area

3050    Third Section in First Group Header Area

3075     Fourth Section in First Group Header Area

GH2   

3001    First Section in Second Group Header Area

3026    Second Section in Second Group Header Area

3051    Third Section in Second Group Header Area

3076    Fourth Section in Second Group Header Area

Details   

4000    First Section in Details Area

4025     Second Section in Details Area

4050    Third Section in Details Area

4075     Fourth Section in Details Area

GF1   

5000     First Section in First Group Footer Area

5025     Second Section in First Group Footer Area

5050     Third Section in First Group Footer Area

5075     Fourth Section in First Group Footer Area

GF2   

5001     First Section in Second Group Footer Area

5026     Second Section in Second Group Footer Area

5051    Third Section in Second Group Footer Area

5076    (Fourth Section in Second Group Footer Area

Page Footer   

7000     First Section in Page Footer Area

7025    Second Section in Page Footer Area

7050    Third Section in Page Footer Area

7075    Fourth Section in Page Footer Area

Report Footer   

8000     First Section in Report Footer Area

8025    Second Section in Report Footer Area

8050    (Third Section in Report Footer Area

8075    Fourth Section in Report Footer Area


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>