 |
|
 |
|
Next: How to change output method dynamically?
|
| Author |
Message |
External

Since: Jan 03, 2007 Posts: 27
|
(Msg. 1) Posted: Thu Feb 07, 2008 3:01 pm
Post subject: Cancel Print Archived from groups: comp>databases>filemaker (more info?)
|
|
|
hello all,
using fm 8 pro advanced, i have several scripts that do some major
printing. the users sometimes want to cancel this printing before they
actually start the printing (hit the cancel button the print dialog
box). Is there any way for me to exit out of the script gracefully?
thanks >> Stay informed about: Cancel Print |
|
| Back to top |
|
 |  |
External

Since: Jun 23, 2003 Posts: 589
|
(Msg. 2) Posted: Thu Feb 07, 2008 6:00 pm
Post subject: Re: Cancel Print [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article , lark
wrote:
> hello all,
>
> using fm 8 pro advanced, i have several scripts that do some major
> printing. the users sometimes want to cancel this printing before they
> actually start the printing (hit the cancel button the print dialog
> box). Is there any way for me to exit out of the script gracefully?
>
> thanks
You can capture an "error" when users click on the Cancel button in a
print window, so your script would be something like:
Set Error Capture [On]
Print []
If [Get(CurrentError) = 0]
{do rest of script}
Else
{do Print Cancelled stuff}
End If
When Get(CurrentError) returns a 0 there was no errors. Other numbers
retuned by the function all mean different things, but the most likely
"error" from the Print command is the user clicking on the Cancel
button.
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o) >> Stay informed about: Cancel Print |
|
| Back to top |
|
 |  |
External

Since: Jan 03, 2007 Posts: 27
|
(Msg. 3) Posted: Thu Feb 07, 2008 6:00 pm
Post subject: Re: Cancel Print [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Helpful Harry wrote:
> In article , lark
> wrote:
>
>> hello all,
>>
>> using fm 8 pro advanced, i have several scripts that do some major
>> printing. the users sometimes want to cancel this printing before they
>> actually start the printing (hit the cancel button the print dialog
>> box). Is there any way for me to exit out of the script gracefully?
>>
>> thanks
>
> You can capture an "error" when users click on the Cancel button in a
> print window, so your script would be something like:
>
> Set Error Capture [On]
> Print []
> If [Get(CurrentError) = 0]
> {do rest of script}
> Else
> {do Print Cancelled stuff}
> End If
>
> When Get(CurrentError) returns a 0 there was no errors. Other numbers
> retuned by the function all mean different things, but the most likely
> "error" from the Print command is the user clicking on the Cancel
> button.
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)
HH,
awesome, i'll try this and let you know how goes it. >> Stay informed about: Cancel Print |
|
| Back to top |
|
 |  |
External

Since: Jan 03, 2007 Posts: 27
|
(Msg. 4) Posted: Thu Feb 07, 2008 6:00 pm
Post subject: Re: Cancel Print [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
lark wrote:
> Helpful Harry wrote:
>> In article , lark
>> wrote:
>>
>>> hello all,
>>>
>>> using fm 8 pro advanced, i have several scripts that do some major
>>> printing. the users sometimes want to cancel this printing before
>>> they actually start the printing (hit the cancel button the print
>>> dialog box). Is there any way for me to exit out of the script
>>> gracefully?
>>>
>>> thanks
>>
>> You can capture an "error" when users click on the Cancel button in a
>> print window, so your script would be something like:
>>
>> Set Error Capture [On]
>> Print []
>> If [Get(CurrentError) = 0]
>> {do rest of script}
>> Else
>> {do Print Cancelled stuff}
>> End If
>>
>> When Get(CurrentError) returns a 0 there was no errors. Other numbers
>> retuned by the function all mean different things, but the most likely
>> "error" from the Print command is the user clicking on the Cancel
>> button.
>>
>> Helpful Harry Hopefully helping harassed humans
>> happily handle handiwork hardships ;o)
>
> HH,
>
> awesome, i'll try this and let you know how goes it.
it worked great. thanks man. >> Stay informed about: Cancel Print |
|
| Back to top |
|
 |  |
| Related Topics: | massive oversize print files.... - FMP 8.5 on OSX. FMP Server. Our developer built layouts [I don't know a better term...] for 4-up/5-up output, for labels, etc. This appear on screen as single column but print as 4 {or 5}. But on one machine; the resulting print file is enormous and..
How to set up Filemaker to avoid decreasing of speed - Please if somebody can help me! I have database of 1.6 mil subscribers (cca. 1.2 Gb, 60 fields, FileMaker Developer 7) - where I want to put average amounts (of 7 different revenue types) from 6 different databases (each database has monthly revenues). ...
File extension to force Tab-Delimited Text Import? - Has anyone found a way to force FileMaker 7 Server to use "Tab Delimited Text" as the import type in a scripted import? It seems that the file type is not remembered as part of the import step. I'm importing fixed-field data in to a text fie...
Fastest way to make related records? - I'm using FM server 7. I have a table that has 25,000 records in it, and I need to make related records in a join table. The two tables are related by a two-field match (ID and Date). I've come up with several ways to do it, but none of them work....
Identifying Connected Users in FMP7 - Hi All, I am using a small network of FMP7 users connected in a PTP network. I want to see the User Names connected to the database at any time. I can find no script or function to do this - the only way I can do this as the File Host, is to "attem... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|