How to Save a CSV file as a PDF File

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

How to Save a CSV file as a PDF File

Post by trags3 »

I can't seem to get this right.
I need to save a CSV file as a PDF file.
How is this done?
Thanks in Advance!

Tom
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to Save a CSV file as a PDF File

Post by Klaus »

Hi Tom,

you may need to put the file into a field and then -> open printing to pdf...


Best

Klaus
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

Re: How to Save a CSV file as a PDF File

Post by trags3 »

Thanks Klaus,
I'll Give that a try!
Tom
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: How to Save a CSV file as a PDF File

Post by richmond62 »

My first Q would be where your CSV stuff is originating.

If it is originating in a Table Field for instance, you can probably 'spit it out' directly to PDF without having to do a round trip through a CSV file.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: How to Save a CSV file as a PDF File

Post by dunbarx »

Hi,

I use, as Klaus mentioned, "open printing to PDF" all the time. That command simply prints whatever is on-screen, creating a PDF file instead of sending to a printer. All the normal printing gadgets are still valid, "formatForPrinting", "printMargins", "printPaperorientation", whatever. Check out the dictionary for other capabilities.

Craig
Post Reply