Jump to content

Retrieving CANCEL from _PrintSetPrinter


ekotek
 Share

Recommended Posts

Hey all, if anyone is familiar with the _PrintSetPrinter UDF, maybe you can help me out.

Upon examining the include file, the UDF states that if CANCEL is clicked, it will return 0...I can't seem to get this value upon clicking CANCEL. I assign a variable to the UDF ($printSET=_PrintSetPrinter($hp)), for example, and even if I click 'CANCEL', it never returns 0, only returns 1...

Therefore, even though the action was cancelled, it still prints....

Any help would be greatly appreciated...

Link to comment
Share on other sites

Hey all, if anyone is familiar with the _PrintSetPrinter UDF, maybe you can help me out.

Upon examining the include file, the UDF states that if CANCEL is clicked, it will return 0...I can't seem to get this value upon clicking CANCEL. I assign a variable to the UDF ($printSET=_PrintSetPrinter($hp)), for example, and even if I click 'CANCEL', it never returns 0, only returns 1...

Therefore, even though the action was cancelled, it still prints....

Any help would be greatly appreciated...

A better place to post questions about the printmg udf would be in the thread for that udf. There's more chance that I will see it there.

This was a fault in the dll was was corrected in version V2.45. Latest version is V2.48

V2.1 added Image for bmp or jpg or ico

V2.2 add pie, ellipse, arc

V2.3 fixed orientation if printing

V2.4 add GetPageNumber, remove PageCount and use printerpagenumber

V2.41 improve icon printing - no longer need to save and load temp.bmp to convert to bmp

V2.42 added select printer

V2.43 correct error in NewPage- published as V2.44??

V2.45 Setprinter always returned 1, now returns 1 on success, 0 if failed

V2.46 Added ListPrinters

V2.47 Added RoundRect

V2.48 Added SetTitle

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...