Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-19 Thread Robert J. Earp via use-livecode
ng to find a solution, tabs have turned out to be >> tricky little devils in LC !! >> >> best, Bob... >> >>> From: Paul Dupuis mailto:p...@researchware.com>> >>> To: use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> >>>

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-15 Thread Bob Sneidar via use-livecode
Why? I already have that for Mac via Applescript and Javascript. You can also populate a .fdf file if it's properly formatted, and the PDF is configured to access it upon opening. Also there is the qrtPDFLib. Bob S > On Apr 9, 2019, at 09:00 , Robert J. Earp via use-livecode > wrote: > > R

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-11 Thread Håkan Liljegren via use-livecode
pent > inordinate hours trying to find a solution, tabs have turned out to be tricky > little devils in LC !! > > best, Bob... > > > From: Paul Dupuis mailto:p...@researchware.com>> > > To: use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-11 Thread Eller, Roger via use-livecode
Have you tried revPrintField? It's an oldie but goodie. From: use-livecode on behalf of Robert J. Earp via use-livecode Sent: Monday, April 8, 2019 12:24 PM To: use-livecode@lists.runrev.com Cc: Robert J. Earp Subject: Re: Saving a tab formatted field to a file and retaining its forma

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-10 Thread Richard Gaskin via use-livecode
Robert J. Earp wrote: > Many thanks Paul and to Ron Metzker who kindly contacted me off-list > with a comprehensive handler of what he does using revPrintField. > I must admit that the Dictionary still leaves a lot to be desired and > without the valued members of this and other lists LC would no

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-10 Thread Richard Gaskin via use-livecode
Robert J. Earp wrote: > Richard wrote: >> > Would LC's built-in print to PDF support not be an option? > > Richard, many thanks for the thought. If you mean the built-in > “printing to pdf” then yes, but as far as I could see it only prints > cards, not just field content. Is there other pdf su

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-10 Thread Robert J. Earp via use-livecode
rev.com> > Subject: Re: Saving a tab formatted field to a file and retaining its > formatting > > Look at "revPrintField" in the Dictionary. If I recall, I think this can > be used with the open printing to pdf command

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-10 Thread Paul Dupuis via use-livecode
may be one or more pages. I haven’t got into controlling fonts yet, meaning does the “printing to pdf” use the font attributes that are displayed in the field on the card or ? My simple test suggests yes. best, Bob... Subject: Re: Saving a tab formatted field to a file and ret

Re: Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-10 Thread Robert J. Earp via use-livecode
suggests yes. best, Bob... > Subject: Re: Saving a tab formatted field to a file and retaining its > formatting > > Robert J. Earp wrote: > >> I?m not sure if the HTMLText solution will work for us as by default >> the output file would open in a browser

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-09 Thread Richard Gaskin via use-livecode
Robert J. Earp wrote: > I’m not sure if the HTMLText solution will work for us as by default > the output file would open in a browser and we need to get it into > .pdf format to assemble (in Acrobat) with the other parts of the > report. > > RogerG and I are currently mousing around creating a L

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-09 Thread Robert J. Earp via use-livecode
Many thanks for all of the great response and from such experts !! I’m not sure if the HTMLText solution will work for us as by default the output file would open in a browser and we need to get it into .pdf format to assemble (in Acrobat) with the other parts of the report. RogerG and I are cu

RE: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Mark Waddingham via use-livecode
On 2019-04-08 18:27, Ralph DiMola via use-livecode wrote: No tabstops using the styledText property either. This is the one I would have expected to include the tab stops/widths. Both styledText and htmlText representations do include the tabStops (and tabAlign) settings - however both those

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Bob Sneidar via use-livecode
This is a bit more useful. Pass the long id of the field object: function fieldToHTMLTable pFieldID if not there is a field pFieldID then return "ERROR: Field object does not exist!" put the htmltext of pFieldID into ht put the effective textSize of pFieldID into fs put the tabstops o

RE: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Ralph DiMola via use-livecode
] On Behalf Of Richard Gaskin via use-livecode Sent: Monday, April 08, 2019 11:56 AM To: use-livecode@lists.runrev.com Cc: Richard Gaskin Subject: Re: Saving a tab formatted field to a file and retaining its formatting Robert J. Earp wrote: > Dear all, we have a field that is formatted nicely w

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Robert J. Earp via use-livecode
... > From: Paul Dupuis mailto:p...@researchware.com>> > To: use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> > Subject: Re: Saving a tab formatted field to a file and retaining its > formatting > Message-ID: <mailto:ce0de0c4-5daa-22c0-bf46

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread hh via use-livecode
-- Converts a simple table field with tabstops to a html http://lists.runrev.com/pipermail/use-livecode/2019-March/253271.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your su

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Richard Gaskin via use-livecode
Robert J. Earp wrote: > Dear all, we have a field that is formatted nicely with tabs and want > to save that as a file, retaining the tab formatting. The saved file > format ideally should be .rtf but we may be able to use other formats > such as .pdf > > Anybody got any ideas how to do this ?

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Bob Sneidar via use-livecode
I just tested with htmltext. Tab stops are NOT preserved. Bob S > On Apr 8, 2019, at 07:55 , Paul Dupuis via use-livecode > wrote: > > On 4/7/2019 9:00 PM, Paul Dupuis via use-livecode wrote: >> I take it your have tried: >> >> put the rtfText of field "X" into URL >> ("file:"&specialFolde

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Bob Sneidar via use-livecode
Because the tab stops are not part of the data of any formatted text properties. You can test this by creating a table field, setting the tab stops to whatever you want, typing some information, setting the clipBoardData ["rtftext"] to the rtftext of the table field, then pasting into a word do

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Paul Dupuis via use-livecode
On 4/7/2019 9:00 PM, Paul Dupuis via use-livecode wrote: I take it your have tried: put the rtfText of field "X" into URL ("file:"&specialFolderPath("desktop")&slash&"savedfield.rtf") And then reading it back to a new field with: set the rtfText of field "Y" to URL ("file:"&specialFolderPat

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread dunbarxx via use-livecode
I am usually very good at describing problems. I am not so good at describing solutions. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list use-livecode@lists.runrev.com Ple

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Roger Guay via use-livecode
That is a very clear explanation of what I think the problem is. Roger > On Apr 8, 2019, at 7:03 AM, dunbarxx via use-livecode > wrote: > > But that is a property of a field, not of text, and I do not think such > information can be similarly "transmitted", regardless of how that text is > for

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread dunbarxx via use-livecode
Aha. TabStops. Unless I am missing something, is it that the data in a tabStop formatted field is to be copied somehow, so that if loaded into a brand new field, the tabStops property is also "loaded" into that field? But that is a property of a field, not of text, and I do not think such inform

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread Brian Milby via use-livecode
I don’t think it is the tab character but rather the tab stops that are the problem. Brian On Apr 8, 2019, 9:26 AM -0400, dunbarxx via use-livecode , wrote: > Hi. > > I am always missing something. Why is there an issue retaining tabs in a > body of ordinary text? > > I have a table field with "

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-08 Thread dunbarxx via use-livecode
Hi. I am always missing something. Why is there an issue retaining tabs in a body of ordinary text? I have a table field with "A" & tab & "B" & tab & "C" in it. If I write that text into a file on my desktop and then load it back into the second line of that field: on mouseUp get fld 1

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-07 Thread Paul Dupuis via use-livecode
I take it your have tried: put the rtfText of field "X" into URL ("file:"&specialFolderPath("desktop")&slash&"savedfield.rtf") And then reading it back to a new field with: set the rtfText of field "Y" to URL ("file:"&specialFolderPath("desktop")&slash&"savedfield.rtf") and the tab spacing

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-07 Thread Roger Guay via use-livecode
I sent a similar message some time ago to no avail. Let’s see if you are more successful. R > On Apr 7, 2019, at 4:57 PM, Robert J. Earp via use-livecode > wrote: > > Dear all, we have a field that is formatted nicely with tabs and want to save > that as a file, retaining the tab formatting

Saving a tab formatted field to a file and retaining its formatting

2019-04-07 Thread Robert J. Earp via use-livecode
Dear all, we have a field that is formatted nicely with tabs and want to save that as a file, retaining the tab formatting. The saved file format ideally should be .rtf but we may be able to use other formats such as .pdf Anybody got any ideas how to do this ? Thanks in advance for your sugges