How to call DOC file using web.show_documents
Hi friends ,
If I use the built-ins web.show_documents for open the *.doc file
I am getting the following error
ORA-06550: line 5, column 2:
PLS-00201: identifier 'README.DOC' must be declared
ORA-06550: line 5, column 2:
PL/SQL: Statement ignored
DAD name: WebDB
PROCEDURE : readme.doc
URL : http://132.148.160.3:80/WebDB/readme.doc?
PARAMETERS :
===========
ENVIRONMENT:
============
SERVER_PORT=80
SERVER_SOFTWARE=Oracle WebDb Listener 2.1
SERVER_NAME=132.148.160.3
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.0
REMOTE_HOST=132.148.160.251
REMOTE_ADDR=132.148.160.251
REQUEST_METHOD=GET
QUERY_STRING=
SCRIPT_NAME=
PATH_INFO=/WebDB/readme.doc
HTTP_ACCEPT=*/*
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
HTTP_HOST=132.148.160.3
HTTP_CONNECTION=Keep-Alive
Please advice How to call Doc file in web.
Thanx
null
The syntax to execute web.show_document:
web.show_document('http://server_ip_or_server_name/virtual_path/filename.doc')
The virtual path has been defined in Apache (if you run on web with Apache) or has been defined in Internet Inoformation Server (if you are runing with Internet Information Server.)
null
Similar Messages
-
Calling an exe using web.show_document
hi all,
I want to call acrobat.exe using web.show_document.
The exe is in my local system.
Client_host('C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe c:\sql.pdf');
I want to replace this with web.show_document
How can i achieve this??
thx in advance
-swamiHello,
Try something like this:
Web.Show_Document('file:///c:\sql.pdf', '_blank');Francois -
how to call a form from WEB.SHOW_DOCUMENT
I would like to call a form using the WEB.SHOW_DOCUMENT the idea is from the menu that is attached to the form instead of use call_form use WEB.SHOW_DOCUMENT(...my_newform.fmx)
Is this possible?????Hi ,
I think yes...but under some circumstances....
In your formsweb.cfg file you should define a named configuration alias... such as:
[TEST]
workingDirectory=C:\TEST_DIR
form=C:\TEST_DIR\MY_NEWFORM.FMX
Then , after stopping , starting your OC4J instance..... you call that as (in a button , for example):
web.show_document('http:<your_server>:<port>/forms/frmservlet?config=[TEST]',_blank);
I have not tested it.....
Regards,
Simon -
How to call PDF file in Web Dynpro Appl?
How to call PDF file in Web Dynpro Appl?
Hi Gobinath,
1. Create a value attribute of type byte called pdfSource.
2. Insert an UI element called Interactive Form in your layout
3. Set the source property of this Interactive From UI element to the context pdfSource.
4. Insert a button which would open your pdf file.
public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionsubmit(ServerEvent)
IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
byte[] bytes = contextElement.getPdfSource();
try
File file = new File("C:
temp
example.pdf");
FileOutputStream os = new FileOutputStream(file);
os.write(bytes);
os.close();
catch (IOException e)
// do something
e.printStackTrace();
//@@end
Warm Regards,
Murtuza -
Showing tiff files using web.show_document
Hello,
I want to show tiff files using web.show_document. Tiff files cannot be displayed in a browser, however therr are several plug-ins available to show them.
Can anyone recommend a plugin to display tiff files in a browser?
Kind Regards ErikWe had tried a different approach. We store all type of documents in the database using webutil.
And we dont directly open any document and we download the document to the local host and then open it using webutil client host ('local folder\file name')
This way word,excel, pdf etc will be automatically opened with its relevant appln and if there is relevant appln is not found it will prompt the windows standard Open with dialog box.
Rajesh ALex -
How to browse local file using web dynpro
hi everyone
How can I browse local file using Web Dynpro?And read file names into Context or array. I have tried the following code but its not working
String resourcePath = WDURLGenerator.getResourcePath();
String depObjResourcePath = WDURLGenerator.getResourcePath(Test);
WDDeployableObjectPart appPart = WDDeployableObject.getPart(Test, TestApp, WDDeployableObjectPart.APPLICATION);
help required urgently
Thanks & Regards
Jaspreet KaurReply in
how to browse local file using web dynpro
Regards,
Ashwani Kr Sharma -
How to call text file using Script in Data Integrator
Dear All,
Can any one assit me in how to call a text file using script with the help of Data Integrator.
and one question ?
M having 32 csv files i want to club thos 32 csv files into one table with the help of Data Integrator, can
any one assist me.mary,
since you knew the file name ,when clicked in name send to server,read the file and write to servlet outputstream.
I think this would help you.
If anything wrong in mycode ..forums will help you further
BufferedInputStream bis=null;
BufferedOutputStream bos=null;
int bytesRead=0;
byte buff[]=new byte[1024];
File f=new File(test.txt);
try{
bis= new BufferedInputStream(new FileInputStream(f));
bytesRead=bis.read(buff,0,buff.length);
if(bytesRead!=-1){
// create a BufferedOutputStream from ServletOutputStream
bos=new BufferedInputStream(response.getOutputStream());
do{
bos.write(buff,0,bytesRead);
}while((bytesRead=bis.read(buff,0,buff.length))!=-1)
}catch(Exception e){
////error handling
} -
How to send large files using web service
hello everyone,
I am new to this forum, so please pardon me if I post some silly problem...
I have created one service which sends file when client (jsp) request it. I am using JBOSS as my server. purpose of this application is when client request some fle then service will send this file... and most of the time we need to send only pdfs and ppts...
Problem is, this service sends txt, java files easily of any size but when i tried sending PDF, PPT then i got xml.SAXParseException.......
I thought this error is because of some characters, but how to fix it....
I am working on Linux.
code snippet is:
import java.io.*;
public class MyHelloService
public String file_size (String name)
String s = new String("");
byte[] sendata1=new byte[100];
try
System.out.println("name recived is :::::::::::"+name);
FileInputStream in=new FileInputStream(name);
int size=0;
size=in.available();
System.out.println("FILE SIZE IS:::::"+size);
byte[] sendata11=new byte[size];
i=in.read(sendata11);
System.out.println(new String(sendata11));
s=new String(sendata11);
catch(Exception e)
System.out.println("EXCEPTION IN JWS:::"+e);
s=new String("nofilefounderror");
return s;
pls tell me what am i doing wrong ad how to fix this?
and one more thing can i send byte array from a web service as i tried but couldnt do that... so i am reading everything in a single byte array and then converted to string.....
is it possibel to send file in a chunk?if yes, how to do that?
waiting for the reply..... pls reply as soon as possible....
Rashihi,
I am sending file from server to client i.e client will request for a file and service will send it back....... no socket connection is there...I am using JBOSS and apache axis.
pls help me out.....
Rashi -
How to read .doc files using jakarta POI api......
Hi all,
I've googled a lot on reading the file contents of an MS word file. I couldn't get a solution yet. Can you please give some sample codes for using the POI api for extracting only the text contents from an MS word file.
Thanks and Regards,whenever i click the folders, it's taking
to the internal folders. but there's no
option to download the whole package.Thats because you're looking at a tool which displays the contents of an svn repository through a web site.
What you need is a subversion client (the repository is a subversion repository).
There are several easy to use clients available:
Here's two:
1) subclipse: If you use eclipse. Dammed great tool IMHO. http://subclipse.tigris.org/
2) tortoise svn http://tortoisesvn.tigris.org/
When you've got a client, you'll need to give it a repository URL from which to check out.
For the POI project, that URL is http://svn.apache.org/repos/asf/jakarta/poi/trunk/
~D -
Hide Explorer window called using WEB.SHOW_DOCUMENT()
I've created a JSP which creates and saves a PDF into the database. I call this JSP using web.show_document as a result of which an explorer window is opened,which is not what I want. I want to use the JSP functionality in the background not making the user aware of this. I've tried the following :
WEB.SHOW_DOCUMENT('javascript:void(window.open("'||URL||'","","location=no,toolbar=no,menubar=no,status=no,resizable=yes"))','_blank');
But the PDF does not get saved into the database using this call.
Help would be appreciated...Does the pdf gets saved when you paste the same url into a browser-window "by hand" ?
If you don't want to show the url you could create a java-class which just opens a http-connection, import it using the Java-Importer and call it on the application-server -
To which Forms directory to put a text file to show using WEB.SHOW_DOCUMENT
Need to show a text file using WEB.SHOW_DOCUMENT.
In which Forms sub-directory should the text file reside and what is the syntax for the command?
Is it like WEB.SHOW_DOCUMENT('http://192.949.99.19:8890/forms/abc.txt','_blank');Hi, I did this
-- My OC4J URL when I run a form is this: http://192.168.11.103:8890/forms/frmservlet
-- I want to open abc.txt. I put abc.txt in dir E:\Ora_Dev_10g_R2\forms which is my Forms home
-- When I try WEB.SHOW_DOCUMENT('http://192.168.11.103:8890/forms/abc.txt','_blank') it gives
The page cannot be found -
To access pdf files from application server using web.show_document
Hello!
If my pdf file is copied in Oracle_home/forms90/java directory.Then using web.show_document i can access the pdf file.But I can't copy all the pdf files in /forms90/java directory.We have lacs of pdf files which I want to keep in my own directory.But my requirement is if my pdf file is in /home2/docs directory in (Linux application server) ie in my own directory where I store all the pdf files.Then web.show_document does not open the pdf file.It says page cannot be displayed.For that I think we have to configure the directory /home2/docs directory as a webserver.From otn I got something like forms90.conf file in application server where we have to set virtual directory mapping etc.If the pdf is in local machine then in orion-web.xml file we have to mention real path and save the file and shutdown oc4j instance and restart it again.I tried it.But it is not working.Can u give me step by step instructions to solve this problem.I found a few links in discussion forum.But is doesn't work out.My pdf file is in /home2/docs directory in Linux application server.Please treat it as urgent.
Regards
JayashreeHi Sandeepmsandy,
There is no available code sample for this scenario. You may write your own.
Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
Step 2: Use some special classes to get file from serer.
HttpWebRequest can help download small pdf files. For more information to see
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey. -
How can I maximize the window which opened using web.show_document() ?
My user complain, everytime they want to print the report it didn't
show maximize screen,
How can I maximize the browser or window which opened using web.show_document() ?
Thank youThank you for replaying,
I did search in forum, but I only go one about maximize window when calling
a report (web.show_document). the link :
Maximize the new opened window
Frank said to use "Javascript to the Forms", but no futher explanation whow
to do it ?
please help, I don;t know javascript.
Cabe, -
How to open a doc file using jsp Anchor tag
when i am trying to open a doc file using a jsp it is opening with out proper alignment.
how to open a doc file with proper alignment using Anchor Tag in JSp Page
Hello!
Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
Any Ideas?
Thank you in advanced. -
Browser Time out in Reports (using WEB.SHOW_DOCUMENT to call reports)
When running a big report which takes a long time to run, it finishes on the report server but in the browser the screen is stuck at the parameter form, you don't see the report output. It's as if the browser has timedout. Is there a solution to this?
I am running reports using WEB.SHOW_DOCUMENT only - through a URL. This seems to be a huge drawback of using this method.Is the browser launching?
If it is have you tried a show source on the browser window?
Sometimes if you open an XML file in a browser you get a blank page but the XML is there. Something to do with the XML format I think. I'm no expert on XML just a behaviour I have observed.
Maybe you are looking for
-
How can I get video media .MOD into Premiere El. 9?
Videos from my Canon 7d camera and from my Canon ADCHD camcorder (both SD cards) are .MOD files. I open Premiere Elements 9 and click GET MEDIA and it won't recognize the files. It says it cannot open the videos because: "your system does not have th
-
My mail error log is full of these. It adds a new one every 10 seconds. Any idea how to stop it? Main log - Jul 1 03:07:09 mikeg com.apple.launchd[1] (org.postfix.master[23236]): Exited with exit code: 1 Jul 1 03:07:09 mikeg com.apple.launchd[1] (org
-
firefox is the only browser on my laptop have no way to fix it firefox wont open periode so please how can i fix the probleme
-
Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help., Hello, I want to make DPS magazin for IOS and Android wit
-
hiya it is my first time to buy a Nokia 5800 Xpress Music and i wanted to ask of any free apps for the following: 1. Gmail or Yahoo 2. Facebook and/or Twitter 3. Integrated Chat service (like Meebo on Android) 4. Wikipedia 5. Dictionary 6. World weat