Re: Open printing to pdf

2020-05-13 Thread Richard Gaskin via use-livecode
GEORGE WOOD wrote: > Here is on example of what I tried: > > on mouseup > put “⁩/Desktop⁩/test files/Test.pdf” into temp > open printing to pdf temp > print cd 1 from (topleft of cd 1) to (bottomright of cd 1) > close printing > put the result > end mouseup "the result" returns exception

Re: Open printing to pdf

2020-05-12 Thread Phil Davis via use-livecode
What happens if you remove the space from the file path? Does it still behave the same? Phil Davis On 5/12/20 4:23 PM, GEORGE WOOD via use-livecode wrote: Here is on example of what I tried: on mouseup put “⁩/Desktop⁩/test files/Test.pdf” into temp open printing to pdf temp print cd 1

Re: Open Printing to PDF

2019-04-23 Thread Bob Sneidar via use-livecode
Not all my doing. Got help from a number of people on this list who I am too senile to recall now. ;-) Bob S > On Apr 23, 2019, at 11:35 , General 2018 via use-livecode > wrote: > > Very nice ! > ___ use-livecode mailing list

Re: Open Printing to PDF

2019-04-23 Thread Bob Sneidar via use-livecode
That should read: sample: put cleanASCII("This is a test!<>?", "uppercase,lowercase,custom", "?" > On Apr 23, 2019, at 11:24 , Bob Sneidar via use-livecode > wrote: > > sample: put cleanASCII("This is a test!<>?", "uppercase,lowercase", "?" ___

RE: Open Printing to PDF

2019-04-23 Thread General 2018 via use-livecode
Very nice ! -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: 23 April 2019 19:24 To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Open Printing to PDF This may help to clean up all kinds of badness

Re: Open Printing to PDF

2019-04-23 Thread Bob Sneidar via use-livecode
This may help to clean up all kinds of badness in text used for a number of things: function cleanASCII pString, pModeList, pCustomList /* pModeList is a comma delimited list that may contain the following values:

RE: Open Printing to PDF

2019-04-23 Thread General 2018 via use-livecode
2019 13:56 To: use-revolut...@lists.runrev.com Cc: dunbarxx Subject: Re: Open Printing to PDF Hi. Are you saying the "open printing to pdf" command itself does not work, or that you get blank output? In other words, in the stack that does NOT work, what happens if you: open print

Re: Open Printing to PDF

2019-04-23 Thread dunbarxx via use-livecode
Hi. Are you saying the "open printing to pdf" command itself does not work, or that you get blank output? In other words, in the stack that does NOT work, what happens if you: open printing to pdf "yourFilePathHere/xxx.pdf" revPrintText "Hello world" close printing This will eliminate

Re: Open Printing to PDF

2019-04-22 Thread Scott Morrow via use-livecode
Hello Camm, Are they all printing the same text? If I recall correctly, Open Printing to PDF is where the fail occurs when certain Unicode characters are encountered. Emojis are one example where characters will render in a field but not print to a PDF. Hmmm... I wasn’t able to turn up a bug

Re: Open printing to PDF error

2018-04-27 Thread Trevor DeVore via use-livecode
On Thu, Apr 26, 2018 at 9:36 AM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > I have a user who ran into the error "printing: Unknown destination: > (Line 0, column 0)" when executing a line in my code that was "Open > printing to PDF " Try testing a filename that has

Re: Open printing to PDF error

2018-04-26 Thread Paul Dupuis via use-livecode
On 4/26/2018 5:22 PM, Mark Wieder via use-livecode wrote: > On 04/26/2018 09:46 AM, Paul Dupuis via use-livecode wrote: > >> Presumably the folder exists since it was just selected by the user via >> the 'answer file' command. > > I assume that was just a typo, but just in case... you really meant

Re: Open printing to PDF error

2018-04-26 Thread Mark Wieder via use-livecode
On 04/26/2018 09:46 AM, Paul Dupuis via use-livecode wrote: Presumably the folder exists since it was just selected by the user via the 'answer file' command. I assume that was just a typo, but just in case... you really meant 'answer folder' there, right? -- Mark Wieder

Re: Open printing to PDF error

2018-04-26 Thread Bob Sneidar via use-livecode
Yeah, error messages can be misleading sometimes. Often the command is simply returning a message the OS or API passed back to it, and that message can be less than helpful. For example, on copiers, when using StartTLS for encryption in SMTP communications, the server may reject the connection

Re: Open printing to PDF error

2018-04-26 Thread Paul Dupuis via use-livecode
The file path is selected by the user through a standard 'answer file ... ' dialog. The code does not currently check to see if the folder the user selected for the file is writable, but tests of trying to save to a read-only (non writable) folder on Windows results in a controlled error dialog

Re: Open printing to PDF error

2018-04-26 Thread Bob Sneidar via use-livecode
NVM you provide a file path. You may want to check that the folder exists before writing the pdf. Do you ask the end user where they want to put the file first, or do you assume a destination folder? Bob S > On Apr 26, 2018, at 07:57 , Bob Sneidar via use-livecode >

Re: Open printing to PDF error

2018-04-26 Thread Bob Sneidar via use-livecode
Just a guess, check the current default folder. It may have permissions set, or may no longer exist. Bob S > On Apr 26, 2018, at 06:36 , Paul Dupuis via use-livecode > wrote: > > I have a user who ran into the error "printing: Unknown destination: > (Line 0,