print PDF using c#


hi,

 

i have program written in c# creates several pdf on hdd. when creation of de documents(pdf) finished needs print pdf. on locations works , on others doesn't. weird adjustment works on every location. here code used. use bit of explanation why.

 

 

this code works on locations :

process myprocess = new process();

myprocess.startinfo.windowstyle = processwindowstyle.hidden;

myprocess.startinfo.verb = "print";

myprocess.startinfo.filename = filename;

myprocess.startinfo.createnowindow = true;

myprocess.start();              

myprocess.waitforinputidle();

myprocess.kill();

myprocess.close();

 

 

this code works on every location :

process myprocess = new process();

myprocess.startinfo.windowstyle = processwindowstyle.hidden;

myprocess.startinfo.verb = "print";

myprocess.startinfo.filename = filename;

myprocess.startinfo.createnowindow = true;

myprocess.start();              

myprocess.waitforinputidle();

myprocess.waitforexit(10000); --> added, not correct programming

myprocess.kill();

myprocess.close();

 

so find out why "myprocess.waitforinputidle();" isn't working.

 

thx in advance

i don't see code here has acrobat sdk…



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?