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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

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

%d bloggers like this: