Hi All,
I have tried the following two options to activate the layer on InDesign Server side. But it does not work on server side.
1. By using JavaScript app.activeDocument.activeLayer = app.activeDocument.layers.item ('LayerName'); I have created the above script programatically by using Adobe InDesign CS4 SDK (version 557). When I run the program it gets hang when this script get executed on server side. It gives me the Error like "Object does not support the property or method 'activeDocument' ". But when I run the same script with InDesign CS4 Desktop application then it runs properly. The layer (i.e layer name) get activated on InDesign Document. 2. By using Command I have created command using "kSetActiveLayerCmdBoss". Then I get ILayoutCmdData Interface pointer from ICommand. But when I try to derived the ILayoutControlData ptr it gets as nil. It works properly on InDesign Desktop Application but not on InDesign Server Application. So please help me into this problem. Its very urgant. Thanks & Regards, Santosh Kadam.