table size for print.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

table size for print.

#1

Postby xren » Tue Dec 09, 2014 7:15 pm

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
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Dec 10, 2014 7:46 am

Are you using the report option to make all input fields display only? e.g.

Code: Select all

var options = new PdfOptions();
options.reportMode = true;
form.generatePdf(options);
If not, the table will expand to accommodate the length (Display length property) of all the input fields in a table row.

Regards
Jon
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Wed Dec 10, 2014 2:07 pm

The following is the PdfOptions.

Still the same - table expends out of page

var opts = new PdfOptions();
opts.display = false;
opts.save = true;
opts.reportMode = true;
opts.pages = [pages.PRINT_PAGE];
opts.filePath = webappPath+ "temp/"+ pdfName;


form.generatePdf(opts);
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Thu Dec 11, 2014 7:53 am

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
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#5

Postby xren » Wed Dec 17, 2014 2:08 pm

Hi Jon,

I have sent the exported form to the support email box yesterday.

Please take a look.

Thanks,
Xiaoli
0 x


Who is online

Users browsing this forum: No registered users and 30 guests