Hi,
I have a table on a form. When I print the form. the table size doesn't fit the pdf page.
What is the reason?
I compared this table with another table on another form, which works fine. I did't see any difference that cause this problem.
Thanks,
Xiaoli
table size for print.
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Are you using the report option to make all input fields display only? e.g.
If not, the table will expand to accommodate the length (Display length property) of all the input fields in a table row.
Regards
Jon
Code: Select all
var options = new PdfOptions();
options.reportMode = true;
form.generatePdf(options);
Regards
Jon
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Two more things to check:
1. Margins will cause a problem if applied to the Table Control. If you want a margin on the entire PDF, it's better to set it using the PDF style property on the root Page Control and remove it from the Table Control.
2. Other than that, there are obviously limits on what will fit physically within a page. Each column will only shrink to the width of the widest word in a column header or column cell. Beyond that, it will overflow to the right.
If this doesn't help, can you export the form and send it to support@ebasetech.com.
Regards
Jon
1. Margins will cause a problem if applied to the Table Control. If you want a margin on the entire PDF, it's better to set it using the PDF style property on the root Page Control and remove it from the Table Control.
2. Other than that, there are obviously limits on what will fit physically within a page. Each column will only shrink to the width of the widest word in a column header or column cell. Beyond that, it will overflow to the right.
If this doesn't help, can you export the form and send it to support@ebasetech.com.
Regards
Jon
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Who is online
Users browsing this forum: No registered users and 22 guests