Hello,
has anyone ever got ProPrintExecute() working?
I'm only getting PRO_TK_GENERAL_ERROR from it... The program is not going
to print or plot the drawings, actually it should only create plt files.
I'm working with Pro/Wildfire in asynchronous mode.
Any suggestion will be very appreciated...
Thanks a lot.
-Stefano
Here's a sample of my code. Note that mdl is actually a drawing.
ProError stampa(ProMdl mdl, char *plotter_name, char *file_plt) {
char *funcName = "stampa"
ProError err;
ProPrintPrinterOpts printer_opts;
ProPrintMdlOpts mdl_opts;
ProPrintPlacementOpts place_opts;
int w_id;
...
err = ProPrintPrinterOptionsGet(plotter_name, &printer_opts );
if ( PROE_STATUS(funcName, "ProPrintPrinterOptionsGet()", err) ) {
return err;
}
err = ProPrintMdlOptionsGet( mdl, &mdl_opts );
if ( PROE_STATUS(funcName, "ProPrintMdlOptionsGet()", err) ) {
return err;
}
err = ProPrintPlacementOptionsGet( &place_opts );
if ( PROE_STATUS(funcName, "ProPrintPlacementOptionsGet()", err) ) {
return err;
}
mdl_opts.sheets = PRINT_SELECTED_SHEETS;
mdl_opts.mdl = mdl;
err = ProWindowCurrentGet( &w_id );
if ( PROE_STATUS(funcName, "ProWindowCurrentGet()", err) ) {
return err;
}
printer_opts.paper_size.size = sheet_info.type;
mdl_opts.range[0] = 1;
mdl_opts.range[1] = 1;
place_opts.scale = 1;
ProStringToWstring( printer_opts.filename, file_plt );
err = ProPrintExecute( w_id, &printer_opts, &mdl_opts, &place_opts );
--> PRO_TK_GENERAL_ERROR
...
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.