![]() |
![]() |
![]() |
![]() |
Modify the attributes of a print context
int PpSetPC( PpPrintContext_t *pc, int member, void const * const data, int lock );
ph
This function provides a mechanism to modify the attributes of a print context.
![]() |
Don't modify the print context directly, as the appropriate changed bits won't be set and the application may stop working if the print context structure is redefined in the future. |
Use the data types given below when setting the value of the members of the print context.
![]() |
In the following table:
|
Member | Data |
---|---|
Pp_PC_COLLATING_MODE | char * |
Pp_PC_COLOR_MODE | char * |
Pp_PC_CONTROL | Read only: see PpGetPC() |
Pp_PC_COPIES | char * |
Pp_PC_DATE | String |
Pp_PC_DEVICE | String |
Pp_PC_DITHERING | char * |
Pp_PC_DO_PREVIEW | char * |
Pp_PC_DRIVER | String |
Pp_PC_DUPLEX | char * |
Pp_PC_FILENAME | String |
Pp_PC_INKTYPE | char * |
Pp_PC_INTENSITY | unsigned long * |
Pp_PC_JOB_NAME | String |
Pp_PC_MARGINS | PhRect_t * |
Pp_PC_MAX_DEST_SIZE | unsigned long |
Pp_PC_NAME | String |
Pp_PC_NONPRINT_MARGINS | PhRect_t * |
Pp_PC_ORIENTATION | char * |
Pp_PC_PAGE_NUM | unsigned long |
Pp_PC_PAGE_RANGE | PpPageRange_t * |
Pp_PC_PAPER_SIZE | PhDim_t * |
Pp_PC_PAPER_SOURCE | char * |
Pp_PC_PAPER_TYPE | char * |
Pp_PC_PREVIEW_APP | String |
Pp_PC_PRINTER_RESOLUTION | PhDim_t * |
Pp_PC_PROP_APP | String |
Pp_PC_REVERSED | char |
Pp_PC_SCALE | PhPoint_t * |
Pp_PC_SOURCE_COLORS | unsigned long * |
Pp_PC_SOURCE_OFFSET | PhPoint_t * |
Pp_PC_SOURCE_RESOLUTION | PhDim_t * |
Pp_PC_SOURCE_SIZE | PhDim_t * |
Pp_PC_USER_ID | String |
By default, all members are 0 or NULL.
set_my_apps_Pp_prefs( PpPrintContext_t *pc ) { char do_preview = 1, duplex = some_value; PpSetPC( pc, Pp_PC_DO_PREVIEW, &do_preview, 0 ); PpSetPC( pc, Pp_PC_DUPLEX, &duplex, 0 ); // etc... }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PhDim_t, PhPoint_t, PhRect_t, PpContinueJob(), PpCreatePC(), PpEndJob(), PpGetCanvas(), PpGetPC(), PpLoadDefaultPrinter(), PpLoadPrinter(), PpPrintContext_t, PpPrintNewPage(), PpPrintWidget(), PpReleasePC() PpSetCanvas(), PpStartJob(), PpSuspendJob(),
Printing in the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |