|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPaper
Provides access to members that control the default printer page settings.
IPrinter.getPaper()
Method Summary | |
---|---|
void |
attach(int hDevMode,
int hDevNames)
Attach object to specified DEVMODE and DEVNAMES structures. |
short |
getFormID()
The printer page form. |
String |
getFormName()
The Form Name. |
IEnumNamedID |
getForms()
Enumerate forms supported by the printer. |
short |
getOrientation()
The printer page orientation (1 = portrait. |
IEnvelope |
getPrintableBounds()
The area of the printer page that can be printed on. |
int |
getPrinterInfo(int[] hDevMode)
Display the Print Setup Dialog. |
String |
getPrinterName()
The Printer Name. |
short |
getTrayID()
The printer tray. |
IEnumNamedID |
getTrays()
Enumerate trays supported by the printer. |
int |
getUnits()
The units used by the other properties. |
void |
queryPaperSize(double[] width,
double[] height)
Returns the size of the printer paper. |
void |
setFormID(short formID)
The printer page form. |
void |
setOrientation(short orientation)
The printer page orientation (1 = portrait. |
void |
setPrinterName(String printerName)
The Printer Name. |
void |
setTrayID(short trayID)
The printer tray. |
Method Detail |
---|
int getUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getPrintableBounds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getOrientation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOrientation(short orientation) throws IOException, AutomationException
orientation
- The orientation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNamedID getForms() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFormName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getFormID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFormID(short formID) throws IOException, AutomationException
formID
- The formID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNamedID getTrays() throws IOException, AutomationException
Use the Trays enumerator to get a list valid tray ids for the currently selected printer. The returned tray ids can be used in the IPaper interface's TrayID property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.short getTrayID() throws IOException, AutomationException
Use the TrayID property to control which paper tray will be used for feeding printer paper. Because the value of the TrayID property will be used by the printer driver directly, it must contain a valid value at print time. The Win32 API documentation makes reference to these values as the DMBIN contstants. In practice, no printer driver supports the full range of DMBIN paper tray values; usually only a small subset is valid. Thus, it is not possible to assign an arbitrary DMBIN constant to the TrayID property. You must always first enumerate for valid tray ids before assigning. Use the IPaper interface's Trays enumerator to get a list valid tray ids for the currently selected printer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTrayID(short trayID) throws IOException, AutomationException
trayID
- The trayID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getPrinterName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPrinterName(String printerName) throws IOException, AutomationException
printerName
- The printerName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void attach(int hDevMode, int hDevNames) throws IOException, AutomationException
This method is used by the Printer object, called when the IPrinter::Paper property is set. Most ArcObjects developers will not need to use this method unless they are doing a custom implementation of IPrinter.
hDevMode
- The hDevMode (A COM typedef) (in)hDevNames
- The hDevNames (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryPaperSize(double[] width, double[] height) throws IOException, AutomationException
width
- The width (out: use single element array)height
- The height (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getPrinterInfo(int[] hDevMode) throws IOException, AutomationException
hDevMode
- The hDevMode (A COM typedef) (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |