the paper size option accepts either a paper name or a width/height value.
true. some systems have localised paper names so "A3" may not always work.
alternatively you could filter the values returned for PRINT OPTION VALUES.

http://doc.4d.com/4Dv17/4D/17/PRINT-OPTION-VALUES.301-3730884.en.html

the print settings BLOB is a combo of 3 data structures:

1. windows native print settings (DEVMODE and DEVNAMES)
https://msdn.microsoft.com/ja-jp/library/cc398895.aspx
https://docs.microsoft.com/en-us/cpp/mfc/reference/devnames-structure?view=vs-2017

DEVMODE includes scale, paper name, paper length, width and size.

2. mac native print settings (PMPrintSettings and PMPageFormat)
https://developer.apple.com/documentation/applicationservices/pmprintsettings?language=objc
https://developer.apple.com/documentation/applicationservices/pmpageformat

PMPrintSettings is an opaque structure but you can dump it in XML format.
pretty sure it includes scale and paper size as well.

3. a text based key value pair (JSON) of properties (platform neutral)

your question "does it always work?" is understandable,
but as far as 4D is concerned,
it is simply sending the configuration using standard data structures,
so if it doesn't work, the device driver should take the blame.

2018/09/26 20:54、Piotr Chabot Stadhouders via 4D_Tech 
<[email protected]<mailto:[email protected]>>のメール:

 1.  Use SET PRINT OPTION with Paper option and value1=”A3”. Does using paper 
name = “A3” always work? Or do I have to get the paper names first and find 
some paper name with A3 in it?
 2.  Use SET PRINT OPTION with a custom width and height. Does this always 
work, for every printer?



**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to