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 ac

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 ahsoftw...@gmail.

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 f

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 bei

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 > wrote: > > Just a guess,

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, column 0)" when executing a lin

Open printing to PDF error

2018-04-26 Thread Paul Dupuis via use-livecode
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 " This error (in fact NO ERRORs) are listed under the "open printing to PDF" entry in the dictionary. If 'the result is "cancel" ' is the only d