Basic print job question

Questions and answers for designing and implementing forms in Servoy

Basic print job question

Postby djlapin » Wed Jan 23, 2013 11:58 pm

I'm trying to print text that contains returns. I've included two text fields, each of which can grow and slide vertically. I'm getting a first page that is blank (except for the header); a second page that is block text with no returns; and no secondary field.

What needs to be done?

Thanks so much,
Don
Attachments
data_entry_display.png
This is what the data looks like.
data_entry_display.png (125.1 KiB) Viewed 1597 times
design_form.png
This is the form in design mode. Two horizontal fields that grow and move vertically.
design_form.png (12.54 KiB) Viewed 1597 times
printed_form_p2.png
This is what the result looks like. It's chockablock, with no separations. The first page is blank except for the header. No secondary field.
printed_form_p2.png (97.85 KiB) Viewed 1597 times
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Basic print job question

Postby Gordon McLean » Thu Jan 24, 2013 9:55 am

Have a look at Patrick Talbots Velocity reports it is a total solution for all printing via Servoy - ServoyForge.net

Best
Gordon
Gordon McLean
 
Posts: 222
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: Basic print job question

Postby djlapin » Sat Jan 26, 2013 1:02 am

Hi Gordon,

I have used Velocity reports for another (more complicated report).

But am I to conclude that Servoy can't handle carriage returns within a text field, when printing "natively"?

Thank you,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Basic print job question

Postby david » Mon Jan 28, 2013 5:47 pm

Servoy doesn't ever show carriage returns in text fields, CRUD or printing. Make it a text area field.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1726
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Basic print job question

Postby djlapin » Mon Jan 28, 2013 8:22 pm

I was using text areas, not text fields.

But it looks like Servoy needs to have both the carriage return and line feed (\r\n), not just the carriage return (\r). When I added the line feeds, it printed with the expected separations.

I finally got it to work (I also didn't realize I needed to check the box allowing it to break across pages).

Thank you,
Don
Attachments
TrackingLogPrintRev.png
TrackingLogPrintRev.png (48.23 KiB) Viewed 1524 times
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA


Return to Forms

Who is online

Users browsing this forum: No registered users and 2 guests

cron