cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ProPrintExecute

Highlighted
Newbie

ProPrintExecute

All,

I am having an issue when trying to print a model using the ProPrintExecute
function in toolkit (Wildfire 2.0). From what I can tell, when stepping
through the code, the printOptions, mdlOptions, and placeOptions are being
populated correctly, but when ProPrintExecute has been fired, it returns
PRO_TK_GENERAL_ERROR. Here is my snippet of code:

...

ProStringToWstring(plotFile, "fp2170_bl_ps");

//This function works as expected as far as I can tell
err = ProPrintPCFOptionsGet (plotFile, Mdl, &printOptions, &mdlOptions,
&placeOptions);
if (err != PRO_TK_NO_ERROR)
{
WriteMessage("Could not get printer settings");
}

//The model is successfully loaded into the window
err = ProMdlDisplay(Mdl);
if (err != PRO_TK_NO_ERROR)
{
WriteMessage("Could not display model.");
}

//The window ID is successfully retrieved
err = ProMdlWindowGet (Mdl, &windowID);
if (err != PRO_TK_NO_ERROR)
{
WriteMessage("Could not get window ID");
}

//this call returns PRO_TK_GENERAL_ERROR
err = ProPrintExecute (windowID, &printOptions, &mdlOptions, &placeOptions);
if (err != PRO_TK_NO_ERROR)
{
WriteMessage("Could not Print");
}

Thanks,

Joshua Knack
Associate Systems Developer
Cooper Tire & Rubber
2025 Production Dr.
Findlay, OH 45840
(419) 427 4919
Announcements