简单问题:如何在调用PageSetupDialog后知道用户所要的打印方向?(50分)

  • 主题发起人 主题发起人 江远
  • 开始时间 开始时间
1.
BOOL PageSetupDlg( LPPAGESETUPDLG lppsd pointer to a structure );
2. PAGESETUPDLG
3. DEVMODE
4. typedef struct _devicemode { // dvmd
BCHAR dmDeviceName[CCHDEVICENAME];
WORD dmSpecVersion;
WORD dmDriverVersion;
WORD dmSize;
WORD dmDriverExtra;
DWORD dmFields;
short dmOrientation;
short dmPaperSize;
short dmPaperLength;
short dmPaperWidth;
short dmScale;
short dmCopies;
short dmDefaultSource;
short dmPrintQuality;
short dmColor;
short dmDuplex;
short dmYResolution;

short dmTTOption;
short dmCollate;
BCHAR dmFormName[CCHFORMNAME];
WORD dmLogPixels;
DWORD dmBitsPerPel;
DWORD dmPelsWidth;
DWORD dmPelsHeight;
DWORD dmDisplayFlags;
DWORD dmDisplayFrequency;
#if(WINVER >= 0x0400)
DWORD dmICMMethod;
// Windows 95 only
DWORD dmICMIntent;
// Windows 95 only
DWORD dmMediaType;
// Windows 95 only
DWORD dmDitherType;
// Windows 95 only
DWORD dmReserved1;
// Windows 95 only
DWORD dmReserved2;
// Windows 95 only
#endif /* WINVER >= 0x0400 */
} DEVMODE;
 
我试一下,如果可以的话,很快送分!
 
怎么用?
 
大家帮个忙!
应该不是很难吧!
 
还是我自己解决了,贴出来希望对大家都有帮助!
PageSetupDialog.Execute;
if printer.Orientation=polandscape then
begin
ShowMessage('横向');
end else
begin
ShowMessage('纵向');
end;
真是太简单了!
 
简单的问题,无奈的结束!
===============================
盘古擎天志,风华少年人!
 
后退
顶部