Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

[CS4- JS-InD Server] - How to Load the Printer Preset - Reg.

$
0
0

Dear All,

 

Here I load the Printer Preset from Local Machine and generete the "PS" to Local machine using "Stand Alone InDesign Application". Thjs is working fine.

But I cant Load the Printer Preset from Local Machine using InDesign Server.

 

I dont know where I done the mistake's,  Anybody can correct the below coding and let me know...

 

//======================= Code =================================//

     app.importFile(ExportPresetFormat.printerPresetsFormat,"c:\\MyOwnPreset.prst");
    //=============================  PS Creation to Constant "OUT" Folder  ===============//
                     app.printerPresets.item("MyPreset").printFile = new File("C:\\+ "OUT\\" + app.documents.item(0).name.split(".indd")[0] + ".ps");
                     app.documents.item(0).print(false, app.printerPresets.item("MyPreset").name);

//======================= End  : Code =================================//

 

The above coding is working fine, in Stand alone machine, but not working in Server machine....

 

Please anybody can help me in this problem and I will appreciate.....

 

 

Thanks & Regards

T.R.Harihara Sudhan

 

  

 

Message was edited by: Harihara Sudhan


Viewing all articles
Browse latest Browse all 20709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>