These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Visible Screen only

Boon
Registered: May 5 2010
Posts: 66

Hello,

I have a dynamic table of 5 columns. In the fifth column, I put a checkbox in the bodyrow. A user can make a checkmark/ or not making a checkmark here on the form. But when a user print it, I don't want the column 5th to be printed. I set the Visible-Screen-only on both headerrow and bodyrow. But the form still print this column.

any suggestion?

Thanks so much.
Boon

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Tables are oganized into Rows. So you can turn off a whole row for printing, but not a column. What you need to do is to set the presense of every cell in the column to Visible(Screen Only). Then remove the border from the Table subform.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Boon
Registered: May 5 2010
Posts: 66
Thanks Thomp.

Basically you say that I cannot set the column to be invisible. I need to do it for the whole row...


I have another idea that might work but need your help...

I figured out how to set the presence of a cell to be invisible before printing. I do this in teh scripting in the PrePrint event. The problem I have is that I have a dynamic table. My idea is to use the For loop and delete all the cells (in 5th column). How can I get the "last" row count? (says if I know there are 10 rows when a user hit printing, I then will use the for loop for 10 rows.)


thanks!
Boon
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can do this in the following way.

Put a subform into the cells (column) you don't want to be printable and within this subform you then place the fields.
In the object-tab set the visiblity of the subform (not the field) to "visible (screen only)".

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Boon
Registered: May 5 2010
Posts: 66
You're the man Radzmar!

Thanks!