#include "IPrinter.h"
#include "IProfile.h"
#include "udc_defs_public.h"
void SetStandardPageSize()
{
IPrinter* pUDC;
pUDC = new IPrinter;
pUDC->CreateDispatch( "UDCWrapper.Printer" );
pUDC->put_PrinterName( "Universal Document Converter" );
IProfile prof = pUDC->get_Profile( pUDC->get_DefaultProfile() );
prof.put_PageFormat("A3");
prof.put_PageOrientation(PO_PORTRAIT);
prof.put_PrintQualityX(600);
prof.put_PrintQualityY(600);
pUDC->ReleaseDispatch();
delete pUDC;
}
void SetCustomPageSize()
{
IPrinter* pUDC;
pUDC = new IPrinter;
pUDC->CreateDispatch( "UDCWrapper.Printer" );
pUDC->put_PrinterName( "Universal Document Converter" );
IProfile prof = pUDC->get_Profile( pUDC->get_DefaultProfile() );
prof.put_PageWidth(1200);
prof.put_PageHeight(1300);
prof.put_PrintQualityX(600);
prof.put_PrintQualityY(600);
pUDC->ReleaseDispatch();
delete pUDC;
}
|