#include "IPrinter.h"
#include "IProfile.h"
void SetDefaultProfile()
{
IPrinter* pUDC;
pUDC = new IPrinter;
pUDC->CreateDispatch( "UDCWrapper.Printer" );
pUDC->put_PrinterName( "Universal Document Converter" );
IProfile prof = pUDC->get_Profile("Document to JPEG, Color");
prof.put_Default(TRUE);
pUDC->ReleaseDispatch();
delete pUDC;
}
|