Dark
I have a similar application where I pass the datawindow
to a generic print window. In the print window I put the
passed datawindow in print preview mode and they can
resize, modify, shrink, zoom ... the printpreview window
without changing the original datawindow. I can't use
Sharedata, rowscopy because I need to copy the headers
nested reports... If the headers have been changed in
script
or there are nested reports, sharedata won't work. So what
I use
is the functions: GetFullState and SetFullState.
GetFullState
will get the entire datawindow resultset, headers.... and
convert it to a blob. I then convert this blob back to a
datawindow in the printpreview window using setfullstate.
For a composite report you will need the getchild fx
to get the reference to the nested report.
for example:
dw_1.getfullstate(lblob)
dw_composite.getchild('nestedreport',dwchild)
dwchild.SetFullstate(lblob)
I am pretty sure something like that should work.
I am not at my computer ( I am on a Mac ) ;-)
so I can't make sure it will work also my syntax
may be a little rusty. Sorry
Please post your solution. I am sure others will
be interested. This is a very useful application. ie
reusing a datawindow in it's entirety without retrieving
it again.
If you can't get it to work I can look at it this weekend.
I don't want to leave this unanswered until the weekend
when I am pretty sure this will work.
HTH
SetFullState not work for DataWindowChild object.
Dark
If the temp table is populated in PB then
it will be available on the server and
can be populated and it will still be available
on the client and can be retrieved multiple
times.