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 accented characters in it and see if that
triggers the error.

—
Trevor DeVore
ScreenSteps

>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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
> 'answer folder' there, right?
>
Actually, I meant 'ask file ...' to prompt the user for a standard
*save* file dialog to get the file path for the 'open printing to pdf tFile'

And by folder exists, I mean the containing folder in the path returned
by the 'ask file' dialog.

When I am typing fast (like in email posts) I get my ask and answers
transposed!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 for a number of 
security reasons, but the error the copier always reports is "Login Failure" 
when in reality, the login information is correct. This can lead the uninitated 
down a rabbit hole if they try to change the password to what they think it 
might be. 

I was having fits getting a newly installed copier to scan to a customer's NAS 
file server. The error reported was "Login Failure". I verified credentials, 
did packet captures, sent them off to Konica, etc. Everyone was completely 
stumped. Turns out the top IT guy for the enterprise had decided to enable 
ACL's on the NAS devices, and he hadn't entered the MAC addresses for the new 
copiers yet. 

One other example: If Outlook attempts to connect to an Exchange server that is 
currently offline, it will present a login dialog. What percentage of end users 
do you think will STILL attempt to guess at their logins and passwords, even 
after telling them numerous times NOT TO GUESS. :-) So this is a problem with 
virtually everything that is going to interact with someone else's systems. 

Bob S


> On Apr 26, 2018, at 09:46 , Paul Dupuis via use-livecode 
>  wrote:
> 
> 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 being presented by the 'open printing to pdf' statement rather
> than an code execution error.
> 
> Presumably the folder exists since it was just selected by the user via
> the 'answer file' command. Obviously, I can wrap this part of the code
> in a TRY ... END TRY block to catch any error and present a graceful
> message of something like "exporting to PDF failed", but I was hoping
> someone (perhaps a LiveCode employee???) might actually know what the
> error message of 'printing: Unknown destination' meant.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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 being presented by the 'open printing to pdf' statement rather
than an code execution error.

Presumably the folder exists since it was just selected by the user via
the 'answer file' command. Obviously, I can wrap this part of the code
in a TRY ... END TRY block to catch any error and present a graceful
message of something like "exporting to PDF failed", but I was hoping
someone (perhaps a LiveCode employee???) might actually know what the
error message of 'printing: Unknown destination' meant.


On 4/26/2018 11:01 AM, Bob Sneidar via use-livecode wrote:
> 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, check the current default folder. It may have permissions set, 
>> or may no longer exist. 
>>
>> Bob S
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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, check the current default folder. It may have permissions set, 
> or may no longer exist. 
> 
> Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/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 
> <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 "
> 
> 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
> dictionary entry reference to an error code.
> 
> I assume this is some kind of permissions error? However, attempts to
> replicate (say by trying to save to a read only folder) have proven in
> effective. Does anyone know what this error is for real?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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
dictionary entry reference to an error code.

I assume this is some kind of permissions error? However, attempts to
replicate (say by trying to save to a read only folder) have proven in
effective. Does anyone know what this error is for real?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode