How to open a Word Document from Developer Forms
Hi Buddies,
Can anybody help me out in this regard.
My requirement is like this.
In my developer Forms Screen i have one button named resume.
if i click that button then that particular persons resume has to be opened which is MsWord file(.DOC)located in server(Which is the database server).
So we have to launch the word with the required document using the Forms built-ins. The document path will be stored in my database.
Quick response will be appreciated.
Thanks in Anticipation
Regards
Kiran Kumar Jasti
Hi Kiran,
host('winword.exe <pass ur resume path>');
hope this could work out....just try...good luck
Regards
Thobula Rakesh
Similar Messages
-
How to Open a Word document using Developer Forms
Hi Buddies,
Can anybody help me out in this regard.
My requirement is like this.
In my developer Forms Screen i have one button named resume.
if i click that button then that particular persons resume has to be opened which is MsWord file(.DOC)located in server(Which is the database server).
So we have to launch the word with the required document using the Forms built-ins. The document path will be stored in my database.
Quick response will be appreciated.
Thanks in Anticipation
Regards
Kiran Kumar JastiThis is a confused and confusing issue. There are no quick fixes. Bear in mind the following points:
Word is a client program. It can only open documents that can be seen from a client PC. If you cannot see your database server's directories from a client PC (and I would hope you can't) you cannot open that document.
what you are left with is creating a copy of that document, transporting it to the client realm, and then overwriting it back on the server after your user has finished with it (if they're editing).
there are many different ways of doing this, but they will probably involve writing an API in VisualBasic or Java. Alternatively you might look at Oracle's IFS.
This is not the right forum for a detailed solution - try the Developer forum (or IFS if that floats your boat).
Good luck, APC -
How to open a word document from OA page
Hi,
I have a requirement where in the file names are displayed in a table .When the user clicks on the file name the file should open .The docs are basically word docs.
Any idea how to implement this.
I saw a post related to this in which someone suggested to use symlinks in Apache.Not sure how to do that.
Thanks
AnnaHi Kiran,
host('winword.exe <pass ur resume path>');
hope this could work out....just try...good luck
Regards
Thobula Rakesh -
Open word document from oracle forms 10g
Hi,
Could any one please guide me how to open a word document from forms 10g on client machine (windows). My word document resides on application server (unix).
Thanks for the help in advance.I tried that, but it doesn't work.
What I have done is, I have written a java code that has a function ope_word that opens up a word document. I have created jar out of it called wordbean.jar.
Add this wordbean.jar in $ORACLE_HOME/forms/java directory and also added in the formsweb.cfg file (archive_jini=wordbean.jar)
Then I created a form and usinf fbean.register and fbean.invoke functions of forms, I am trying to call wordbean.jar.
F.bean.register is registering all the components of wordbean.jar but it is not opening the word document.
Could you please help ?? -
Upload / Open a Word Document from BDS with WebDynpro
Hello,
we use the BDS (Business Document Server) to storage our word files. Now we use WebDynpro with the UI OfficeControl.
Could any one tell me, how to open/upload my documents from BDS with the OfficeControl.
The UI FileUpload does not work, because it is not allowed to use specify URLs. link:[http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm]
For example that is the URL from the BDS: "SAPR3://SAPR3CMS/get/100/BDS_5FDB2_5FR/7B3AAF5B22AAD21197ED0060B0672A3C/Forminterface.doc"
I use the class "CL_BDS_DOCUMENT_SET" with the method "get_with_url". result is above.
Each example with the OfficeControl from SAP (Package SIOS) use the Mime Repository:
mime_repository = cl_mime_repository_api=>get_api( ).
CALL METHOD mime_repository->get
EXPORTING
i_url = url
IMPORTING
e_content = content.
wd_context->set_attribute( name = 'DATAS' value = content ).
Have any one an idea, how BDS and WebDynpro works togetherWhat about getting the binary of the word document from BDS and download this?
Yes, it exist a method calls "get_with_table". This return the binary path from my url above.
Here is my source code:
public attributes
DATA oi_document TYPE REF TO if_ios_wordprocessing.
DATA oi_factory TYPE REF TO if_ios_factory.
METHOD wddomodifyview .
DATA ol_node TYPE REF TO if_wd_context_node.
DATA ol_office TYPE REF TO cl_wd_office_control.
DATA vl_document TYPE xstring.
short from
vl_document = myBDS->get_with_table( ).
Settings for UI OFFICE_CONTROL
ol_node = wd_context->get_child_node( 'OFFICE' ).
ol_node->set_attribute( name = 'DATASET' value = vl_document ).
get the office control
wd_this->oi_office ?= view->get_element( 'OFFICE_CONTROL' ).
get the IOS Factory
wd_this->oi_factory ?= ol_office->_method_handler.
get proxy document
wd_this->oi_factory->get_wordprocessing_proxy(
IMPORTING proxy = wd_this->oi_document ).
CALL METHOD wd_this->oi_document->if_ios_document~opendocument( ).
ENDMETHOD.
When I compile everything is ok. But when I run my application, it nothing happen. No word file is opening or no error message. I create a ALC trace (SAPNOTE 949770).
Each time when I try to open my word file comes a popup-window from the alc-trace:
ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::| STG_E_READFAULT : readaccess|HRESULT=-2147287010( A disk error occurred during a read operation)
ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::|Office version is lower than 12, only native office format supported|HRESULT=-2147467259(Unspecified error
ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::|loadOffice2007xml|HRESULT=-2147467259(Unspecified error )
But I have access to the BDS and to the document.
Can any one help me.....
Regards
Nils -
How top Open a Excel Document from share point document library using jquery
How top Open a Excel Document from share point document library using jquery
Hi,
According to your post, my understanding is that you want to open excel file via JQuery.
To open excel file, we can use the following code.
<script type="text/javascript">
function openExcel(strFilePath) {
var yourSite = "http://www.yoursite.com";
openExcelDocPath(yourSite + strFilePath, false);
function openExcelDocPath(strLocation, boolReadOnly) {
var objExcel;
objExcel = new ActiveXObject("Excel.Application");
objExcel.Visible = true;
objExcel.Workbooks.Open(strLocation, false, boolReadOnly);
</script>
For more reference:
http://www.kavoir.com/2009/01/using-javascript-to-open-excel-and-word-files-in-html.html
http://www.dotnetspider.com/resources/43453-Open-Word-Excel-files-using-Javascript.aspx
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Open a word document from a Java Application
Hi,
Can I open a word document from a java GUI apllication and point to a bokkmark automatically in the word document when opened.See this thread:
http://forum.java.sun.com/thread.jspa?threadID=228332&messageID=810684 -
i install abode - it will download but not install and indicates i have to close firefox before it will download. Also, I try to open a word document from a website - it will download but not open.
You need to close Firefox to install many plugins, including those from Adobe.
As for the Word downloads, see the changing downloads action section of this link - https://support.mozilla.com/kb/Managing+file+types -
How to open a word document in dynpro
Hi experts,
i am new to web dynpro, i have a problem that i need to open a word document from desktop in my screen. its not ALV or i dont have to upload the file but i have to OPEN the file..
plz help
Regards:
ParteekHi Manu,
Follow these steps:
1. Create CONTEXT with 2 attributes - UPLOAD & SHOW of type XSTRING.
2. Add a "UPLOAD" element on the layout of screen & map it with UPLOAD attribute of context.
3. Then Add a "OFFICE CONTROL" on the same screen & map it with the SHOW attribute of context..
4. Add a BUTTON for Show Document/Open Document.
5. Add 2 attrubutes in ATTRIBUTES tab of the dynpro application:
i) DOCUMENT type IF_IOS_DOCUMENT
ii) FACTORY type IF_IOS_FACTORY
6. On method of that button (SHOW)...enter the following code:
DATA : refexp TYPE REF TO cx_ios_exception.
IF wd_this->document IS INITIAL.
wd_this->factory->get_document_proxy( IMPORTING proxy = wd_this->document ).
ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
ENDIF.
wd_this->document->opendocument( ).
read context node
DATA:
node_file_upload TYPE REF TO if_wd_context_node,
elem_file_upload TYPE REF TO if_wd_context_element,
stru_file_upload TYPE if_second=>element_file_upload .
navigate from <CONTEXT> to <FILE_UPLOAD> via lead selection
node_file_upload = wd_context->get_child_node( name = if_second=>wdctx_file_upload ).
get element via lead selection
elem_file_upload = node_file_upload->get_element( ).
get all declared attributes
elem_file_upload->get_static_attributes(
IMPORTING
static_attributes = stru_file_upload ).
stru_file_upload-show = stru_file_upload-upload.
set all declared attributes
elem_file_upload->set_static_attributes(
EXPORTING
static_attributes = stru_file_upload ).
7. Now add the following code to the WDDOMODIFYVIEW method (default method)
DATA:
office TYPE REF TO cl_wd_view_element.
get the office control
office ?= view->get_element( 'OFFICE' ).
ASSERT ID sios_demo CONDITION office IS BOUND.
get the IOS interface
wd_this->factory ?= office->_method_handler.
ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.
8. Run the application & enter a text file of word format in the File Upload.
9. Press show button & it will display the code of that word file.
Plz ask any queries if you face any problem doing the above code.
& dont forget to mark Points.
Regards:
Parteek.
Edited by: Parteek Arora on Jan 23, 2008 9:05 AM -
hi all,
How i can open a word document containing data by clicking a text in a smart form.
Thanks,
RanjithHi Ranjith,
Sorry to disappoint You!!
your requirement cannot be fullfilled as the end product of a smartform is expected to be an printout or at max and PDF document.
you will not have an option for clicking and you cant achieve your task!!!!!!!! -
How to open the pdf document from KM through Link to URL UI element
Hi All,
I have Link to URL UI element in webdynpro java layout - on click of the link we need to open the pdf document from KM respository.
KM Document location : irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf.
Once this is transported to Test and Production portals , we need to retrieve the KM document from the respective portal location through the Link to URL UI element .
Thanks,
Portaluser100Hi,
If you set the link to your document in a Context attribute by using a relative path this should work just fine.
Example:
wdContext.currentContextElement().setUrl("/irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf");
Bind that attribute to the reference property of the LinkToURL element.
Cheers,
Leo -
How to open a JSP page from a form ??? plz help
hi ..
i want to know how to open a jsp page from a oracle apps form using a button .
the requirement is that whenever we click on the button created on the form, it opens a jsp page.
plz help me ..its urgent !! :-(In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
Here is an example to hyperlink ans button to open a new page:
# From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
# Create a second portlet page, called PortletPage2.jsp, for the project.
# Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
# Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
# Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
# Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
# Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
# Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
Sherry
Creator Team -
Calling Word document from Oracle Forms 10g
Hi all,
I would like to call a Microsoft Word document from my Oracle Forms 10g.
What would be the best way to do this?
Thank you in advance.Have you tried something like
WEB.SHOW_DOCUMENT('file:///<documentpath>','_blank'); -
How to open a Word 2003 from a Word 2010 document?
Hello, I am a transcriptionist and I use a word expander but it only works in Word 2003. I have some documents from a new client who uses Word 2010. When I get the files I need to open them in Word 2003 because I need to type in using my word expander.
How do I open a document that is sent to me in Word 2010 but open it in Word 2003?
ThanksHi,
There is a special add in you can use to open office 2010 files in 2003. Have a look here:
http://www.microsoft.com/en-us/download/details.aspx?id=3
Maurice
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You -
How do I open a word document from a url?
We have a document server and I need to open a MSWord document that is a template for LabView to populate (using bookmarks and Connectivity Toolkit).
I have looked at the URL builder and I can't get that to work. The Get Document does open the document but it doesn't seam to give the correct path to the Word Get Report so it doesn't give a good link.
I can open it in the default browser which links to Word but again there isn't any link to feed to Word Get Report.
Am I even close?
Thank you,
Ben
Solved!
Go to Solution.Here's a code snippet that should help you:
It:
initializes a HTTP session with a username and password,
generates a random, non-existent filename with a doc extension
Get's a file on URL to the temporary filename
Closes the HTTP session
Starts the Report Generaton Toolkit, with the file from the web as the template
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Maybe you are looking for
-
Hey i just got a copy of windows vista but it won't install. i tried to install it using bootcamp but it asks me to start installing on a existing windows. i don't have any windows installed on my mac book. Do i have to install windows xp before inst
-
Windows 7 and Time Capsule attached disk - folder copying problems
We have a Time Capsule in a LAN with a USB disk attached to the USB port. The USB disk is available and writable by all computers (Mac OS X, Ubuntu, and Windows 7). On the Windows 7 PC, the Airport utility is installed along with Bonjour. The drives
-
DBMS_LOB.WRITEAPPEND - HELP!
Why is my code failing? All I am doing is reading text from an external file (UTL_FILE package) and appending it onto an NCLOB variable, but the WRITEAPPEND to the NCLOB variable is failiing. I know the WRITEAPPEND is failinb because I instrumented t
-
In the previous version of FF I could type a term in the address bar and it would auto open that website, now it just performs a google search. Is that a setting I can adjust or is it not available anymore?
-
Standard beauty treatment...
There have been some questions posted about techniques similar to the "healing brush" in PhotoShop to remove imperfections/fine details/wrinkles/etc... in moving video footage. One such technique from a pre-digital video age is the application of dif