Hi all
when i call iacadplot::plotToDevice(adobe pdf) ,it works fine.but i call iacadplot::plotToDevice(HP LaserJet 3050 Series PCL 5e) ,the autocad 2004 alway say"no enought memory...."
void testPlot()
{
CAcadApplication iAcadApp;
IDispatch *pDisp=acedGetAcadWinApp()->GetIDispatch(TRUE); //Addref is called on the pointer
iAcadApp.AttachDispatch(pDisp);//does not call AddRef()
iAcadApp.put_Visible(true);
CAcadDocument iActiveDoc;
pDisp=iAcadApp.get_ActiveDocument();//AddRef is called
iActiveDoc.AttachDispatch(pDisp);
pDisp=iActiveDoc.get_Plot();
CAcadPlot iPlot;
iPlot.AttachDispatch(pDisp);
VARIANT plotConfig;
plotConfig.vt=VT_BSTR;
plotConfig.bstrVal=L"HP LaserJet 5000 Series PCL6";
iPlot.PlotToDevice(plotConfig);
}
Thank's in advance.