shuboarder
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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect!