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.