ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

when i call plotToDevice ,autocad 2004 say "no enough memory..."

1 REPLY 1
Reply
Message 1 of 2
l3936525
304 Views, 1 Reply

when i call plotToDevice ,autocad 2004 say "no enough memory..."

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.
1 REPLY 1
Message 2 of 2
l3936525
in reply to: l3936525

i am sorry to waste you time ,3q .is all my fault,nothing about autocad:) HOHO
3q
3q

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost