Alaska Software Inc. - Crystal Sub-report
Username: Password:
AuthorTopic: Crystal Sub-report
IBACrystal Sub-report
on Fri, 14 Aug 2009 23:23:53 -0700
Hi,

What is the correct syntax for the count of sub-reports in a loaded report?

I've tried oReport:Subreports:Count, but it errs.

Many thanks,

-Itai
Dirk JuckniesRe: Crystal Sub-report
on Mon, 17 Aug 2009 10:10:08 +0200
INLINE METHOD EvalSubReports()

         LOCAL oSection, nSections, nObjects

         LOCAL i,x

         LOCAL bErr



         nSections := ::report:Sections:count

         FOR i := 1 TO nSections



            oSection := ::report:Sections:item(i)

            IF oSection:ReportObjects:count > 0



               nObjects := oSection:ReportObjects:count

               FOR x := 1 TO nObjects

                  IF oSection:ReportObjects:item(x):kind = crSubreportObject

                     AAdd( ::aSub, oSection:ReportObjects:item(x) )

                  ENDIF

               NEXT x



            ENDIF



         NEXT i

      RETURN self



"IBA" <iba@adelphia.net> schrieb im Newsbeitrag 
news:246e37a6$28626f01$4d47c@news.alaska-software.com...
> Hi,
>
> What is the correct syntax for the count of sub-reports in a loaded 
> report?
>
> I've tried oReport:Subreports:Count, but it errs.
>
> Many thanks,
>
> -Itai
>
>
IBARe: Crystal Sub-report
on Mon, 17 Aug 2009 02:37:53 -0700
Hi Dirk,
What is crSubreportObject?
Could you please post the line instantiates this variable?
Many thanks,
-Itai
Dirk JuckniesRe: Crystal Sub-report
on Mon, 17 Aug 2009 14:51:49 +0200
Hi,

 CrObjectKind
#define crFieldObject 1
#define crTextObject 2
#define crLineObject 3
#define crBoxObject 4
#define crSubreportObject 5
#define crOleObject 6
#define crGraphObject 7
#define crCrossTabObject 8
#define crBlobFieldObject 9
#define crMapObject 10
#define crOlapGridObject 11

Regards
Dirk

"IBA" <iba@adelphia.net> schrieb im Newsbeitrag 
news:7c69d77d$35a1b74a$55389@news.alaska-software.com...
> Hi Dirk,
> What is crSubreportObject?
> Could you please post the line instantiates this variable?
> Many thanks,
> -Itai
>
IBARe: Crystal Sub-report
on Sun, 23 Aug 2009 23:07:28 -0700
Thank you, Dirk.

This is working alright.

Could you please display here the syntax for connecting a database to each 
sub-report?

Many thanks,

-Itai

------------------------------------------------

"Dirk Jucknies" <Dirk.Jucknies@mmorthosoft.de> wrote in message 
news:25aba65c$17d695c8$56c19@news.alaska-software.com...
> Hi,
>
>  CrObjectKind
> #define crFieldObject 1
> #define crTextObject 2
> #define crLineObject 3
> #define crBoxObject 4
> #define crSubreportObject 5
> #define crOleObject 6
> #define crGraphObject 7
> #define crCrossTabObject 8
> #define crBlobFieldObject 9
> #define crMapObject 10
> #define crOlapGridObject 11
>
> Regards
> Dirk
>
> "IBA" <iba@adelphia.net> schrieb im Newsbeitrag 
> news:7c69d77d$35a1b74a$55389@news.alaska-software.com...
>> Hi Dirk,
>> What is crSubreportObject?
>> Could you please post the line instantiates this variable?
>> Many thanks,
>> -Itai
>>
>
>
Kiron Joseph Re: Crystal Sub-report
on Wed, 21 Oct 2009 16:59:33 +0530
Hi,

Which is the activex component for Crystal reports ? Where will get
the OCX file ? Is that free ?

Regards
Kiron


On Fri, 14 Aug 2009 23:23:53 -0700, "IBA" <iba@adelphia.net> wrote:

>Hi,
>
>What is the correct syntax for the count of sub-reports in a loaded report?
>
>I've tried oReport:Subreports:Count, but it errs.
>
>Many thanks,
>
>-Itai
>
Pascal BoivinRe: Crystal Sub-report
on Thu, 22 Oct 2009 15:10:38 -0400
Kiron Joseph wrote:

> Hi,
> 
> Which is the activex component for Crystal reports ? Where will get
> the OCX file ? Is that free ?

The OCX was included with Crystal Developper Edition 9 and prior
versions.  With version 9 and 10, it was suggested to use the "Report
Designer Component" (RDC) COM object.  As of version 11, you need to
install about 200-250mb of DLL to be able to use it.  I have not tried
version 12 (2008) yet.