Advertisements

SIEBEL: How to Open PDF or any file from Server Script using Clib.system()

Approach 1: Opening PDF using the Browser, No need of installable of Acrobat Reader. Works on Windows Platform only because it is Server Script and executes on server.

 Var sFilePath = "http://docs.oracle.com/cd/E14004_01/books/PDF/DevDep.pdf";
 var sCommand = "start iexplore.exe " + sFilePath;
 Clib.system(sCommand);

Approach 2: Opening PDF using Acrobat reader, without the Browser, Need of Acrobat Reader installation. Works on Windows Platform only.

Var sFilePath = "C:\PDF\DevDep.pdf";
  var sCommand = "start AcroRd32.exe /A" + "zoom=1000=OpenActions" + sFilePath;
 var sCommand = "start AcroRd32.exe /A" + sFilePath;
 Clib.system(sCommand);
Advertisements


Categories: Siebel

Tags: , , , , , , , , , , , , , , , , ,

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: