cancel
Showing results for 
Search instead for 
Did you mean: 

Opening documents...

david_fryda2
Participant
0 Kudos

Hi everyone,

I'd like to open files like word, excel, pdf, gif,...

Is this possible with WebDynPro or do I have to use special APIs from Java ?

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To open files like doc and excel through WebDynpro we have the Office Control UI element.

Similarly we have the Interactive form UI element to open the PDF files.

We can also use file download element to download the required file and open the same.

Revert back for further clarifications.

Regards,

Vijith

Answers (2)

Answers (2)

Former Member
0 Kudos

You can use Adobe Interactive forms for that.

Regards, Anilkumar

david_fryda2
Participant
0 Kudos

Thanks everyone.

I used the LinkToURL UI element.

I can open any document I want.

Thanks for your help.

Former Member
0 Kudos

HI David,

I have a requirement to open PDF files using a link. The files should reside on the server, I have created a the folder hierarchy as /usr/sap/mydocs and pasted the PDF test.pdf into it. The 'reference' I've mentioned is /usr/sap/mydocs/test.pdf but it doesn't open the file. (It says resource is not found!)

Could you please tell me how you achieved this?

Thanks in advance,

Chaitanya

Former Member
0 Kudos

hello Chaitanya,

try giving the whole path from the root directory. ie c:/user....../test.pdf.

regards,

Rajeev.

Former Member
0 Kudos

Create an alias in the Visual Administrator, this will make the folder available over http (HTTP Provider service).

Former Member
0 Kudos

Dear Rajeev/Pascal,

Thanks a lot for the replies.

I have my WAS setup in a HP Unix machine and I have created the folder structure /usr/sap/mydocs in it and gave the path from root only.

Pascal, could you please tell me how to use visual administrator. (I'm new to webdynpro )

Regards,

Chaitanya

Former Member
0 Kudos

The Visual Administrator is a tool that is installed with the Web AS, located in /usr/sap/<SID>/JC00/j2ee/admin/. There's a "go" script available in there. Once it starts, you need to logon, and then browse to Cluster -> Server -> Services -> HTTP Provider. Select the Aliases tab on the right side and create your alias (ie. chaitanya), which will then become available over http as http://<hostname>:<port>/chaitanya.

Former Member
0 Kudos

Hi Chaitanya,

1. Create the PDF file (eg. output.pdf) to some location in the server (eg: usr/sap/mydocs)

2. Create a HTTP alias(eg. chaitanya) in the Visual Adminsitrator pointing to the file location (eg: usr/sap/mydocs).

3. Set the linkToURL reference property to http://<<servername>>:50000/chaitanya/<<PDF file name>>

For creating the HTTP alias refer to the blog "Creating an HTTP Alias in WAS"

/people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was

Hope this solves your problem.

Regards,

Santhosh.C

Former Member
0 Kudos

Pascal/Santhosh,

Thank you very much for the replies. I did as you advised and I'm able to resolve the issue.

Thanks again,

Chaitanya

Former Member
0 Kudos

.... It would be nice to reward people for their efforts to help you solve your issue...

Former Member
0 Kudos

Hi Pascal,

Since my issue wasn't posted as a question I don't see the stars to reward points.

Very sorry for that.

Chaitanya

Former Member
0 Kudos

hello David,

u can opend MS documents using OfficeControl UIE. the files should be present in the server and the client can open it in client side.

regards,

Piyush.

david_fryda2
Participant
0 Kudos

Hi Piyush,

What about other files that are not MS (like PDF) ?

Thanks.