Re: Make hidden subforms print on final output

439 views
Skip to first unread message

Jono Moore

unread,
Jun 13, 2012, 11:47:27 AM6/13/12
to live...@googlegroups.com
Can you share your form? You can attach it by email reply or post it on acrobat.com or something like that.

this.presence = "visible"; should do the trick on the Preprint event. I think you'd only need the relevant setting if the object had been set to Visible (Screen Only).


On Tuesday, June 12, 2012 9:08:04 PM UTC-7, MrG wrote:
I have a dynamic form that when certain questions are answered check boxes at the end of the form are populated and a question appears that the form filler must fill out. This part of the form is working fine. The issue that I have is even if the questions are not selected or answered that they must print on final output. This is a regulatory rule. I have tried subform.relevant = "+print"; in  preprint along with this.presence = "visible"; and no go. If the questions are showing from the checkboxes being on they do print.

The form had been originally been done in LiveCycle Designer 7 and has been work on thru the versions. I am presently using LC Designer 10. The form is being saved for Acrobat 9.1 or higher dynamic pdf.

The subforms are flowed within the page and then when they are all open the rest of the pages are fixed. So 1 -16 are fixed page 17 is flowed creates pages 18 & 19 and 20 is fixed.

I don't ever remember this form printing the hidden subforms even though the coding had been in the form.

Any insight would be greatly appreciated.

Thanks
Michael

kingphysh

unread,
Jun 16, 2012, 1:32:47 AM6/16/12
to live...@googlegroups.com
Hi,

My hunch is that there are no instances of desiredPrintedObject when you try to print. Changing the relevant or presence properties of an object that has zero instances will not reveal anything. If my hunch is correct, then desiredPrintedObject.setInstances(1); may be part of the solution.

Good luck,

Stephen


Ashok Deivasigamani

unread,
May 23, 2014, 3:40:55 AM5/23/14
to live...@googlegroups.com
I do have a similar problem,
In my form I have four pages, which at a given instance displays only one of the page, the rest three hidden. The user navigates through each of the pages to fill the form one page at a time by using the Next and back buttons present at the bottom of the page.
But when the user tries to print the form with the print button only the current visible page is available in the print dialog box, my requirement is have all the pages to be printed on click of the Print button, not only the current page in display.

in the print buttons prePrint event, I tried to make the rest of the pages vissible, but the code did not work..
Please let me know if it is possible to print all the pages?

Regards -
Ashok D


On Friday, June 15, 2012 8:56:55 AM UTC+5:30, MrG wrote:
Jono,

Thank you for the input. I figured it out after some pondering. This form was coded quite awhile back and the printing of the hidden sub-forms have not worked for about three years now. It was a day two thing that never had been fixed.

Now for how I fixed the issue was by duplicating the sub-forms and taking the coding out for the duplicates. Removed the preprint coding that didn't work and wrote new code for the duplicate sub-forms based on if the other forms are showing or hidden.


if(Footer_Left.presence == "hidden")
{
    Footer_Left.presence = "visible";
}
else
{
    Footer_Left.presence = "hidden";
}


if(Q1.presence == "hidden"){
    Q1_print.presence = "visible";
}
else
{
    Q1_print.presence = "hidden";
}

if(Q2.presence == "hidden"){
    Q2_print.presence = "visible";
}
else
{
    Q2_print.presence = "hidden";
}

if(Q3.presence == "hidden"){
    Q3_print.presence = "visible";
}
else
{
    Q3_print.presence = "hidden";
}

if(Q4.presence == "hidden"){
    Q4_print.presence = "visible";
}
else
{
    Q4_print.presence = "hidden";
}

if(Q6.presence == "hidden"){
    Q6_print.presence = "visible";
}
else
{
    Q6_print.presence = "hidden";
}

if(Q7.presence == "hidden"){
    Q7_print.presence = "visible";
}
else
{
    Q7_print.presence = "hidden";
}

if(Q8.presence == "hidden"){
    Q8_print.presence = "visible";
}
else
{
    Q8_print.presence = "hidden";
}

if(Footer.presence == "hidden")
{
    Footer.presence = "visible";
}
else
{
    Footer.presence = "hidden";
}

if(Q9.presence == "hidden"){
    Q9_print.presence = "visible";
}
else
{
    Q9_print.presence = "hidden";
}

if(Q10.presence == "hidden"){
    Q10_print.presence = "visible";
}
else
{
    Q10_print.presence = "hidden";
}

if(Q10_B.presence == "hidden"){
    Q10_B_print.presence = "visible";
}
else
{
    Q10_B_print.presence = "hidden";
}

if(Q11.presence == "hidden"){
    Q11_print.presence = "visible";
}
else
{
    Q11_print.presence = "hidden";
}

if(Q12.presence == "hidden"){
    Q12_print.presence = "visible";
}
else
{
    Q12_print.presence = "hidden";
}

if(Footer_last.presence == "hidden")
{
    Footer_last.presence = "visible";
}
else
{
    Footer_last.presence = "hidden";
}

Again thank you for the input.

Naveed Syed

unread,
May 23, 2014, 11:37:51 AM5/23/14
to live...@googlegroups.com
Please find the form attached. Here on click of print am making only page1 and page2 visible. I hope this is useful to you.

Regards
Nav.


--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to livecycle+...@googlegroups.com.

To post to this group, send email to live...@googlegroups.com.
Visit this group at http://groups.google.com/group/livecycle.
For more options, visit https://groups.google.com/d/optout.

DD Selection.pdf
Reply all
Reply to author
Forward
0 new messages