c# - PDF995 set Product code to create 2 documents -


i have c# method needs create 2 documents separately using pdf995. simplified version:

public void printdocuments(printdocument report1, printdocument report2) {      printutility.setpdf995key();  // method set product code in registry.     report1.print();      // pdf995 "save as" dialog box appears here.      printutility.setpdf995key();     report2.print();  } 

in order create document , avoid having pdf995 advertising banners appear, first have set product code registry item. click on save in pdf995 save file dialog, product key blanked out, means have set product code again create second document.

the problem is, save file dialog box displayed asynchronous / modeless dialog box, means code creates second document reached before user has had chance click on save first one.

so now, though product code set second time, clicking on save first document blank out, , because program has passed call printutility.setpdf995key() method before printing second one, still blank when second save file dialog appears , annoying "trial version" banners.

so there way around this? e.g. there way make save dialog modal, or event when "save" clicked can fired can call printutility.setpdf995key() immediately, or way of permanently setting product code or else?


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -