PDA

View Full Version : CDO and Subreport



HenryEgal
26-Jan-2006, 10:01 AM
Hi all! Is there a way to pass an array to a subreport in Crystal 11? I
know I could really load one array and pass the data with no subreport, but
thought it might be cleaner to use a subreport. Thanks!!! Henry

David Martinko
26-Jan-2006, 10:40 AM
Try using a shared variable.


--
David Martinko
Redeemed Software
248-535-7495
RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
www.redeemedsoftware.com
www.redeemedhosting.com

"Henry Egal" <Henry@horizon-is.com> wrote in message
news:xzFYZioIGHA.7592@dacmail.dataaccess.com...
Hi all! Is there a way to pass an array to a subreport in Crystal 11? I
know I could really load one array and pass the data with no subreport, but
thought it might be cleaner to use a subreport. Thanks!!! Henry

David Martinko
26-Jan-2006, 11:44 AM
Henry,

If you are using CRXI, and the cCrystal class... then the answer is
simple. It does it for you. If you use the same TTX file in the subreport as
the main report, then the subreport will get the same data. If you use a
different TTX and only use it in the subreport... it will get it's data.
There is nothing additional you have to do.

This is by design. Much of the work was handled for you. When filling
data for a subreport TTX, you need to only do the same thing as you do for
the main report.

--
David Martinko
Redeemed Software
248-535-7495
RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
www.redeemedsoftware.com
www.redeemedhosting.com

"Henry Egal" <Henry@horizon-is.com> wrote in message
news:jIC%23wdpIGHA.1756@dacmail.dataaccess.com...
Woops Sorry! I meant loading a second .ttx file. Or building 2 arrays in
dataflex and passing to two different .ttx files. One .ttx in main report
and one in subreport. Thanks for any suggestions! Henry


"David Martinko" <RedeemedSoftware@Hotmail.com> wrote in message
news:yDpXj7oIGHA.3096@dacmail.dataaccess.com...
> Try using a shared variable.
>
>
> --
> David Martinko
> Redeemed Software
> 248-535-7495
> RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
> www.redeemedsoftware.com
> www.redeemedhosting.com
>
> "Henry Egal" <Henry@horizon-is.com> wrote in message
> news:xzFYZioIGHA.7592@dacmail.dataaccess.com...
> Hi all! Is there a way to pass an array to a subreport in Crystal 11?
I
> know I could really load one array and pass the data with no subreport,
but
> thought it might be cleaner to use a subreport. Thanks!!! Henry
>
>
>

HenryEgal
26-Jan-2006, 11:47 AM
Woops Sorry! I meant loading a second .ttx file. Or building 2 arrays in
dataflex and passing to two different .ttx files. One .ttx in main report
and one in subreport. Thanks for any suggestions! Henry


"David Martinko" <RedeemedSoftware@Hotmail.com> wrote in message
news:yDpXj7oIGHA.3096@dacmail.dataaccess.com...
> Try using a shared variable.
>
>
> --
> David Martinko
> Redeemed Software
> 248-535-7495
> RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
> www.redeemedsoftware.com
> www.redeemedhosting.com
>
> "Henry Egal" <Henry@horizon-is.com> wrote in message
> news:xzFYZioIGHA.7592@dacmail.dataaccess.com...
> Hi all! Is there a way to pass an array to a subreport in Crystal 11?
I
> know I could really load one array and pass the data with no subreport,
but
> thought it might be cleaner to use a subreport. Thanks!!! Henry
>
>
>

HenryEgal
26-Jan-2006, 12:03 PM
David, Ah yes just did it that is great! I was making it to complicated!!
Thanks for the reponses!! Henry


"David Martinko" <RedeemedSoftware@Hotmail.com> wrote in message
news:0mYdnfpIGHA.3096@dacmail.dataaccess.com...
> Henry,
>
> If you are using CRXI, and the cCrystal class... then the answer is
> simple. It does it for you. If you use the same TTX file in the subreport
as
> the main report, then the subreport will get the same data. If you use a
> different TTX and only use it in the subreport... it will get it's data.
> There is nothing additional you have to do.
>
> This is by design. Much of the work was handled for you. When filling
> data for a subreport TTX, you need to only do the same thing as you do for
> the main report.
>
> --
> David Martinko
> Redeemed Software
> 248-535-7495
> RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
> www.redeemedsoftware.com
> www.redeemedhosting.com
>
> "Henry Egal" <Henry@horizon-is.com> wrote in message
> news:jIC%23wdpIGHA.1756@dacmail.dataaccess.com...
> Woops Sorry! I meant loading a second .ttx file. Or building 2 arrays
in
> dataflex and passing to two different .ttx files. One .ttx in main report
> and one in subreport. Thanks for any suggestions! Henry
>
>
> "David Martinko" <RedeemedSoftware@Hotmail.com> wrote in message
> news:yDpXj7oIGHA.3096@dacmail.dataaccess.com...
> > Try using a shared variable.
> >
> >
> > --
> > David Martinko
> > Redeemed Software
> > 248-535-7495
> > RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
> > www.redeemedsoftware.com
> > www.redeemedhosting.com
> >
> > "Henry Egal" <Henry@horizon-is.com> wrote in message
> > news:xzFYZioIGHA.7592@dacmail.dataaccess.com...
> > Hi all! Is there a way to pass an array to a subreport in Crystal 11?
> I
> > know I could really load one array and pass the data with no subreport,
> but
> > thought it might be cleaner to use a subreport. Thanks!!! Henry
> >
> >
> >
>
>
>

Vincent Oorsprong
29-Jan-2006, 03:40 AM
Henry,

I would enumerate the subreports and assign the CDO data to the right
subreport. Never tried it but since subreports are just reports it
should work.

--
Regards,
Vincent Oorsprong
Data Access Europe B.V.
http://www.dataaccess.nl

David Martinko
29-Jan-2006, 02:56 PM
Vincent,

This is handled automatically by the cCrystal class.

--
David Martinko
Redeemed Software
248-535-7495
RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com
www.redeemedsoftware.com
www.redeemedhosting.com

"Vincent Oorsprong" <vincent.oorsprong@reply.at.newsgroup.nl> wrote in
message news:SCGIf%23KJGHA.1712@dacmail.dataaccess.com...
Henry,

I would enumerate the subreports and assign the CDO data to the right
subreport. Never tried it but since subreports are just reports it
should work.

--
Regards,
Vincent Oorsprong
Data Access Europe B.V.
http://www.dataaccess.nl