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
Post a Comment