I tried several combinations of the code below showing a button method on the 
form "SumForm".  The parent method gets passed some arrays, opens its form 
"SumForm", displays them in the LB, and provides a button with the below code.

The button method prints fine in a DB.  When the DB is used as a component, the 
page prints blank.  All code and the form are in the component.
The fix is to copy the source LB to the LB on the form being opened.  It's odd 
because it's the same form and LB.  Am I missing a simple step to make this 
work from a component?  FORM LOAD("SumForm";*) would not help since the Host 
does not contain the form.

PRINT SETTINGS  // Does not work when displaying the LB from a component
If (OK=1)
        If (OK=1)
                FORM LOAD("SumForm")  // this form has Box_Sum on it
                        $end:=Print object($obj->)
                        If (Not($end))
                                PAGE BREAK
                        end if
                Until ($end)
        End if 
End if 


Keith - CDI

> On Aug 2, 2017, at 10:34 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> I don't see any reasons why they won't work in tandem.
> in the context of OPEN PRINTING JOB,
> you are just printing objects on top of each other, in memory.
>> 2017/08/03 12:01、James Crate via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> it doesn’t look like Print Object can work in combination with Print Form.

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com

Reply via email to