Link to home
Start Free TrialLog in
Avatar of shuboarder
shuboarderFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Print part of a form button

Hi,

I have a button that currently prints part of a form.
Basically, half of the form is set to hidden when printed.

My issue is that now users want to be able to actually print this part of the form.
Is there any way of printing part of the form based on a condition? i.e. if flag = 1 then print top part else bottom part?
Or any other alternative suggestions/workarounds?

Thanks!
SOLUTION
Avatar of Bill-Hanson
Bill-Hanson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qwaletee
qwaletee

Another way tio handle this is to use subforms, and condirtionally include the subforms that you want to include in the pirnt.
If it is for Web the approach will be different.
For that, make use of <span> and <div> tags to export to a new window and print.
Let me know if you need any help on the above.
Avatar of shuboarder

ASKER

Hi Bill-Hanson,

excellent idea! Only problem is this....

formName
Text. Optional. The name of the form you want to use to print the document. Specify an empty string ("") if you want to print the document using its current form. This parameter is ignored if you're printing from an open document.

I assume I will have to pass the variables to the second form then run the print command, then close the second form. My concern now is the user will be prompted to save the second form which I don't want!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect!