Upload and display Word Document in WD application

Hello,
I have a WD ABAP appl. where the user wants to upload an Word / Excel file (from its own local drive).
The document shall be saved in SAP and it shall also be possible to display the document later in the WD application.
I implemented the UI element upload in the view, to determine the path of the document.
For the display implemented the UI element Office control.
1. When i browse the document, the properties data, filename and mime type are filled into the bound context elements of the upload UI.
2. The property datasource of the UI office control I bound to the same context element, that is also bound to the property data of the upload UI.
The office control opens a word document, but the document is empty.
Is it possible that the document is not uploaded correct?
In another application I did an upload for a PDF doc.. There I implemented the following coding as action of the button 'Upload'.
data lo_nd_pdf type ref to if_wd_context_node.
data lo_el_pdf type ref to if_wd_context_element.
data ls_pdf type wd_this->element_pdf.
data lv_pdf like ls_pdf-pdf.
navigate from <CONTEXT> to <PDF> via lead selection
lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
get element via lead selection
lo_el_pdf = lo_nd_pdf->get_element( ).
get single attribute
lo_el_pdf->get_attribute(
exporting
name = `PDF`
importing
value = lv_pdf ).
Get a reference to the from processing class.
data: l_fp type ref to if_fp.
l_fp = cl_fp=>get_reference( ).
Get a reference to the PDF Object class.
data: l_pdfobj type ref to if_fp_pdf_object.
l_pdfobj = l_fp->create_pdf_object( ).
set the pdf in the PDF Object
l_pdfobj->set_document( pdfdata = lv_pdf ).
set the PDF Object to extract data the Form data.
l_pdfobj->set_extractdata( ).
execute call to ADS
l_pdfobj->execute( ).
get the PDF Form data
data: pdf_form_data type xstring.
l_pdfobj->get_data(
importing
formdata = pdf_form_data ).
convert the xstring from data to string so it can be processed using the iXML classes
data: converter type ref to cl_abap_conv_in_ce,
formxml type string.
converter = cl_abap_conv_in_ce=>create( input = pdf_form_data ).
converter->read(
importing
data = formxml ).
pull in the iXML type group.
type-pools: ixml.
get a reference to iXML object
data:l_ixml type ref to if_ixml.
l_ixml = cl_ixml=>create( ).
get iStream object from StreamFactory
data: streamfactory type ref to if_ixml_stream_factory,
istream type ref to if_ixml_istream.
streamfactory = l_ixml->create_stream_factory( ).
istream = streamfactory->create_istream_string( formxml ).
create an XML document class that will be used to process the XML
data: document type ref to if_ixml_document.
document = l_ixml->create_document( ).
create the parser class
data: parser type ref to if_ixml_parser.
parser = l_ixml->create_parser( stream_factory = streamfactory
istream = istream
document = document ).
parse the XML
parser->parse( ).
define XML Node type object
data: node type ref to if_ixml_node,
attributes type ref to if_ixml_named_node_map.
get the psi sales data Node and value.
data ls_psi_sales type wd_this->element_psi_sales.
data: lt_dfies type table of dfies,
ls_defies type dfies.
call function 'DDIF_NAMETAB_GET'
exporting
tabname = 'ZCM_PSI_SALES'
ALL_TYPES = ' '
LFIELDNAME = ' '
GROUP_NAMES = ' '
UCLEN =
IMPORTING
X030L_WA =
DTELINFO_WA =
TTYPINFO_WA =
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
tables
X031L_TAB =
dfies_tab = lt_dfies
exceptions
not_found = 1
others = 2
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
data: lv_fieldname type string.
field-symbols <fs_field> type any.
loop at lt_dfies into ls_defies.
lv_fieldname = ls_defies-fieldname.
node = document->find_from_name( name = lv_fieldname ).
assign component lv_fieldname
of structure ls_psi_sales
to <fs_field>.
if <fs_field> is assigned.
<fs_field> = node->get_value( ).
endif.
endloop.
WRITE DATA INTO CONTEXT
data lo_nd_psi_sales type ref to if_wd_context_node.
data lo_el_psi_sales type ref to if_wd_context_element.
navigate from <CONTEXT> to <PSI_SALES> via lead selection
lo_nd_psi_sales = wd_context->get_child_node( name = wd_this->wdctx_psi_sales ).
get element via lead selection
lo_el_psi_sales = lo_nd_psi_sales->get_element( ).
set all declared attributes
lo_el_psi_sales->set_static_attributes(
exporting
static_attributes = ls_psi_sales ).
Do I need such a code also to upload a word doc?
Which interface / class exists for word documents? (for PDF upload there is the interface IF_FP)
How can I save a document in SAP? (as MIME Object?  with which method?)
I hope someone can help me!?
BR

You can use the fileupload and filedownload uielements.
Check these links:
[File Upload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm]
[File Download|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm]
When you upload a file and save in SAP, are you saving it as xstring.
If yes follow these steps for filedownload.
Follow these steps for file download:
1 Create FileDownload uielement in your View
2.Create an Attribute of type xstring.
3.Bind this attribute to the data property of your Filedownload uielement.
4. during fileuplaod as you are saving the document in xstring format, fetch the same from your database table and pass the value to filedownload i.e set the attribute bound to data property of filedownload uielement with the xstring content.

Similar Messages

  • Store and display word document in database through forms

    how can i store a word document in database through forms 6i or 10g, and display it through forms from database.
    i know how to store a binary file in database through DBMS_LOB package, but i want to do it throug forms. is it possible?
    regards

    Hi Alex
    "Create a datablock and specify the item datatype as blob"
    BUT: How to bring the document to the blob?
    Hi user 611..
    Warning: It is easy if you use an OLE-Object - but OLE is a special format. The result will not be the same as with dbms_LOB.
    We have a application with documents stored via OLE - terrible!
    OLE is no longer supported by forms 10. But webutil would help.
    I asked a similar question and got a good answer:
    OLE-Container and migration to the web
    Wolfram

  • Upload and Retrieve Word documents

    Hai friends .. good Morning to all
    I am fresher i need your help ...
    Problem What i am Facing:
    I upload the file and stored in Mysql ..
    steps what i did to upload the file
    1) get the uploaded file and write it into the file InputStream
    2) using setBinaryStream(inputstramvalue);
    3) in mysql that file is stored Blob datatype
    Retrieve File
    1)i put getBlob("cloumn name " )
    getBlob("cloumn name " ) 2)ouput :
    com.mysql.jdbc.Blob@9ca1fbtell me how retrieve file display in jsp ..
    Please friends help me..

    <form action="/UploadAction" enctype="multipart/form-data">
            File : <input type="file" name="excelTemplate"/><br/>
            <input type="submit" name="name" value="upload"/>    
    </form>FileFiled.java:
    import java.io.InputStream;
    import java.net.URLConnection;
    public class FileField{
       private InputStream fileFieldInputStream = null;
       private byte fileFieldData[] = null;
       public void setFileFieldInputStream(InputStream fileFleidInputStream){
            this.fileFieldInputStream = fileFieldInputStream;
       public InputStream getFileFliedInputStream(){
            return this.fileFielddInputStream;  
       public void setFileFieldData(byte fileFieldData[]){
            this.fileFieldData = fileFieldData;
       public byte[] getFileFieldData(){
            return this.fileFieldData;
       public String getContentType(){
          String contentType = null;
           try{
              contentType = URLConnection.guessContentTypeFromStream(fileFieldInputStream);
              if(contentType == null)
                  contentType = "application/octet-stream";
           }catch(Exception exp){
          return  contentType;
    }FileUploadUtils.java:
    import java.io.File;
    import java.io.FileOutputStream;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.commons.fileupload.FileItem;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.servlet.PortletFileUpload;
    public class FileUploadUtils {
         private Map fileItemMap = null;
         private  Map nFileItemMap = null;
         private Object request = null;
         private ProgressListener pl = null;
         private static FileUploadUtils obj = null;
         public FileUploadUtils(Object request)throws Exception{
                 this.setRequest(request);                             
                 this.fileItemMap = new HashMap();
                 this.nFileItemMap = new HashMap();
                 this.init(this.getRequest());            
         public FileUploadUtils(Object request,ProgressListener pl)throws Exception{
                 this.setRequest(request);
                 this.setProgressListener(pl);
                 this.fileItemMap = new HashMap();
                 this.nFileItemMap = new HashMap(); 
                 this.init(this.getRequest());            
         protected void setRequest(Object request){
                 this.request = request;
         protected Object getRequest(){
              return this.request; 
         procted void setProgressListener(ProgressListener pl){
              this.pl = pl; 
         public static synchronized FileUploadUtils getInstance(Object request,ProgressListener pl)throws Exception{
                  if(obj == null)
                     obj = new  FileUploadUtils(request);
                  obj.setProgressListener(pl);
                  obj.init(obj.getRequest());  
                  return obj; 
         private void init(Object request)throws Exception{
                  Class requestClass = Class.forName("javax.servlet.HttpServletRequest");
                  if(request instanceof HttpServletRequest){
                     HttpServletRequest req = (HttpServletRequest) request;
                     if(ServletFileUpload.isMultipartContent(req))
                         this.portletMultiPartRequestInit();
                  }else if(request instanceof ActionRequest){
                       ActionRequest req = (ActionRequest)request;
                       if(PortletFileUpload.isMultipartContent(req))
                           this.servletMultiPartRequestInit();
         private void servletMultiPartRequestInit() throws Exception{
             DiskFileUpload dfu  = null;
             List fileItems  = null;   
             try{
                   // an object which deals with parsing the Multipart request made to the Controller
                   ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());               
                   if(pl != null)
                     servletFileUpload.setProgressListener(pl);
                   // setting Max file Size
                   servletFileUpload.setSizeMax(1000000);
                   // parsing the multipart request made 
                   fileItems = servletFileUpload.parseRequest(this.request);
                    // checking whether the content supplied is multipart content or not & checking whether we have got any elements in the generated list or not    
                   if(dfu.isMultipartContent && fileItems != null){
                            Iterator iter =  fileItems.iterator();
                           while (iter.hasNext()) {
                                FileItem item = (FileItem) iter.next();           
                                  String fieldName = item.getFieldName(); 
                                        // checking whether the field is a Non-File filed like textbox ,combo box & etc or not                                       
                                        if (!item.isFormField()){
                                            String fieldValue = item.getString();
                                            this.nFileItemMap.put(fieldName, fieldValue);  
                                        }else{
                                           FileField ff = new FileField();
                                           ff.setFileFieldInputStream(item.getInputStream());
                                           ff.setFileFieldData(item.get()); 
                                           this.fileItemMap.put(fieldName,ff);    
                    }catch(Exception exp){
                         exp.printStackTrace();
                         System.err.println(exp.getMessage());
                         throw new Exception(exp.getCause());
                    } finally{
                       fileItems = null;
                       dfu = null; 
             private void portletMultiPartRequestInit() throws Exception{
                DiskFileUpload dfu  = null;
                List fileItems  = null;   
                try{
                   // an object which deals with parsing the Multipart request made to the Controller
                   PortletFileUpload portletFileUpload = new ServletFileUpload(new DiskFileItemFactory());               
                   if(pl != null)
                     portletFileUpload.setProgressListener(pl);
                   // setting Max file Size
                   portletFileUpload.setSizeMax(1000000);
                   // parsing the multipart request made 
                   fileItems = portletFileUpload.parseRequest(this.request);
                   // checking whether the content supplied is multipart content or not & checking whether we have got any elements in the generated list or not    
                   if(dfu.isMultipartContent && fileItems != null){
                            Iterator iter =  fileItems.iterator();
                           while (iter.hasNext()) {
                                FileItem item = (FileItem) iter.next();           
                                  String fieldName = item.getFieldName(); 
                                        // checking whether the field is a Non-File filed like textbox ,combo box & etc or not                                       
                                        if (!item.isFormField()){                                    
                                            String fieldValue = item.getString();
                                            this.nFileItemMap.put(fieldName, fieldValue);  
                                        }else{
                                           FileField ff = new FileField();
                                           ff.setFileFieldInputStream(item.getInputStream());
                                           ff.setFileFieldData(item.get());   
                                           this.fileItemMap.put(fieldName,item);    
                    }catch(Exception exp){
                         exp.printStackTrace();
                         System.err.println(exp.getMessage());
                         throw new Exception(exp.getCause());
                    } finally{
                       fileItems = null;
                       dfu = null; 
             /** returns a Map of File Field Items*/
             public  Map  getFileFieldMap(){
                    return this.getFileFiledsMap;
             /** return a List of Non-File fields*/  
             public Map getNonFileFieldMap(){
                   return this.nFileItemMap;
    }NOTE: we are ought to include commons-fileupload & commons-io library util libraries for running the above util class.
    UploadAction:
    public void uploadAction(HttpServletRequest request,HttpServletResponse response)throws Exception{
         FileUploadUtils fuu = new FileUploadUtils(request);
         Map fileItems = fuu.getFileFieldMap();
         Map nFileItems = fuu.getNonFileFieldMap();
         FileField ff = null;
         if(fileItems.get("excelTemplate") != null){
                    ff = (FileField)fileItems.get("excelTemplate");
                    if(ff.getContentType().equals("application/vnd.ms-excel")){
                        FileUploadDAO fud = FileUploadDAO.getCurrentInstance();
                        fud.addFile(ff.getFileFliedInputStream());   
                    }else{
                           throw new Exception("Invalid Data Uploaded");
         }else{
              throw new Exception("An Upload Invalid Request");
    }FileUploadDAO.java:
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javax.sql.SerialBlob;
    import java.sql.Blob;
    import com.myapp.dao.conn.DbConnectionUtils;
    import com.myapp.service.BModelService;
    public class FileUploadDAO{
        private static FileUploadDAO fup;
        protected FileUploadDAO(){}
        public static synchronized FileUploadDAO getCurrentInstance(){
              if(fup == null)
                 fup = new FileUploadDAO();
              return fup;
       /*Methods to Insert the Uploaded file to the Database*/
       public boolean addFile(InputStream fis,int length){
           Connection con = null;
           PreparedStatement pstmt = null;
           ResultSet rs = null;
           boolean flag = false;
           try{
               String sqlQuery = "insert into file_table (fileBlob) values (?)";
               con = DbConnectionUtils.getConnection();
               pstmt = con.prepareStatement(sqlQuery);
               pstmt.setBinaryStream(1,fis,length);
               int i = pstmt.executeUpdate();
               if(i > 0)
                 flag = true;
           }catch(Exception exp){
                exp.printStackTrace();     
           }finally{
               try {      
              if(pstmt != null)                   
                 pstmt.close();                
              if(con != null)
                       con.close();                                
           }catch(Exception exp){                   
           }finally {
              pstmt = null;
                 con = null;
           return flag;
       public boolean addFile(InputStream fis){
           Connection con = null;
           PreparedStatement pstmt = null;
           ResultSet rs = null;
           boolean flag = false;
           try{
               String sqlQuery = "insert into file_table (fileBlob) values (?)";
               con = DbConnectionUtils.getConnection();
               pstmt = con.prepareStatement(sqlQuery);
               pstmt.setBinaryStream(1,fis);
               int i = pstmt.executeUpdate();
               if(i > 0)
                 flag = true;
           }catch(Exception exp){
                exp.printStackTrace();     
           }finally{
               try {      
              if(pstmt != null)                   
                 pstmt.close();                
              if(con != null)
                       con.close();                                
           }catch(Exception exp){                   
           }finally {
              pstmt = null;
                 con = null;
           return flag;
       public Blob getFileData(String fileId){
           Connection con = null;
           PreparedStatement pstmt = null;
           ResultSet rs = null;
           SerialBlob sb = null;
           try{
               String sqlQuery = "select fileBlob from file_table where fileId = ?";
               con = DbConnectionUtils.getConnection();
               pstmt = con.prepareStatement(sqlQuery);
               pstmt.setString(1,fileId);
               rs = pstmt.executeQuery();
               if(rs.next()){
                  Object obj = rs.getObject(1);
                   if(obj instanceof Blob)
                      sb = new SerialBlob((Blob)obj);
           }catch(Exception exp){
                exp.printStackTrace();     
           }finally{
               try {      
              if(pstmt != null)                   
                 pstmt.close();                
              if(con != null)
                       con.close();                                
           }catch(Exception exp){                   
           }finally {
              pstmt = null;
                 con = null;
           return sb;
    }Display Action:
    public void displayAction(HttpServletRequest request,HttpServletResponse response)throws Exception{
            String fileId = request.getParameter("fid");
            if(fileId == null)
               throw new Exception("Invalid Action Requested");
            FileUploadDAO fud = FileUploadDAO.getCurrentInstance();
            Blob blob = fud.getFileData(fud);
            if(blob == null)
               throw new Exception("No Data Found");
             String mimeType = URLConnection.guessContentTypeFromStream(blob.getBinaryStream());
             if(mimeType == null)
                mimeType = "application/octet-stream";
             response.setContentType(contentType);
             response.setContentLength(blob.length());
              BufferedInputStream input = null;
              BufferedOutputStream output = null; 
              int contentLength = blob.length();
              try{
                     input = new BufferedInputStream(blob.getBinaryStream(),768);
                     output = new BufferedOutputStream(response.getOutputStream(),768);
                    while ( contentLength-- > 0 ) {
                                     output.write(input.read());
                     output.flush();
              }catch(Exception exp){
              }finally{
                  if(input != null){
                       try{input.close();}catch(Exception exp){}
                  if(output != null){
                       try{output.close();}catch(Exception exp){}
    }now in order display it on to a JSP here is how you can render the content.
    <iframe src="displayActionUrlPattern?fid=2345ab"/>Hope the discussed example above might be of some help :)
    REGADS,
    RaHuL

  • How to  upload and display image using bsp application

    hi
    I  just wants to know that
    1- how to  upload image from BSP page with attachment into sap server .?
    2-how to display image in to BSP page(webpage).
    thanks

    Hello Gupta Prashant,
    Just to upload and display an image, import image in MIME repository. Not only still images but also flash files can also be uploaded in the MIME repository. Once you import the image in it, use normal html code for image call;
    <img src = "file.jpg/gif" width=  height=>
    Besides it, if your requirement is to store the image in the database and fetch it based on specified field-name, then you have to go for BLOBs i.e Binary Large Object, using this you can also store images, videos, pdfs, applications in the database.
    MBLOB - Medium BLOBs store videos and pdfs,
    LBLOB  - Large BLOBs store movie files and applications.
    You have got 2 ways to use it; some databases store BLOB objects into themselves and some store the path of the BLOB object maintained on the FTP server.
    You can also implement it in ABAP;
    read the following link and practice the tutorial;
    [ Use of MIME Types|http://help.sap.com/saphelp_45b/helpdata/en/f1/b4a6c4df3911d18e080000e8a48612/content.htm]
    also check this
    [TYPES - LOB HANDLE|http://help.sap.com/abapdocu/en/ABAPTYPES_LOB_HANDLE.htm]
    And looking at your question, in order to upload an image, you can make use of FILEUPLOAD tag provided by HTMLB.
    Step 1: FILEUPLOAD provides a browse button to choose desired image file.
    Step 2: Store that image in database using BLOBs.
    Step 3: Retrieve the image using normal select query and display it on the screen.
    Hope it helps you,
    Zahack

  • To upload pdf and ms word document in VA01 header menu -TEXT tab

    I want to upload local file (PDF and Word) in R/3-VA01-Text Header..
    Can any one tell me the solution for that.

    Can any body tell me how search text in PDF
    and MS Word document through Java code, any
    body has code or any suggestion to giveYes.
    First, you need to work out how to read each document type from Java.
    E.g, for MS Word you could use Apache Jakarta POI - HWPF: http://jakarta.apache.org/poi/hwpf/index.html
    Then, you use Apache Lucene to index and search.
    See http://lucene.apache.org/java/docs/index.html
    ~D

  • How to display word document as a HTML document in portal

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option to show this word document in html.
    Thanks
    Rudradev.

    Hi Glenn Mendonca
    I thing it is possible
    Even in SDN search results page, we have option called "HTML version" link
    to see the search document in HTML
    see the below url
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fforums%2fsdn_forums%2fthread%7b74687265616449443d39313633%7d.jspa
    i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=
    might solve this
    pls give your inputs
    Thanks

  • Displaying Word documents on web using IFS

    I am trying to display word documents stored in IFS on the web using the IFS Java API. The process we are currently using is outlined as follows :
    1. Connect to IFS using the connect() method of LibraryService class.
    2. Obtain references to IfsFileSystem object and PublicObject (using findPublicObjectbyPath() method of IfFileSystem class).
    3. Cast the PublicObject to Document class.
    4. Obtain a reference to the InputStream using the getContentStream() method of Document class.
    Now, how do we display the contents of this document on the web ? Is there any IFS classes that do this for us or do we have to rely on the Java I/O classes to read the InputStream char-by-char and display the file ?
    Thanks

    If you are trying to retrieve binary content through a customer Web client, you wouldn't write it to the browser - since the browser can only display HTML.
    Instead, you would generate a Web page which includes a URL to the document (e.g. http://ifsserver/:81466, or http://ifsserver/public/mydoc.doc). Subsequently, when a user clicks the URL, the browser will request the document directly from Oracle iFS' http server. When the http protocol server returns the document content, the browser will determine its MIME type, and launch the appropriate viewing application or helper application automatically.
    null

  • Upload and display image in webside

    Hello Friends,
    I am developing an auction web site ,and facing some problem so I need your help.
    There is some confusion about uploading and displaying images in website .In web based
    application if I want to upload images than where have to store the images database or server
    side any folder .I have not idea about that please send your ideas and sussesions.
    Second problem is What is the best way to display images in webside either giving a direct
    path of server side image folder or I need to retrieve all images from database .
    I have no idea about it please send me your guideline which are usefull for me to implement in my
    website.
    what is the correct way to upload and display images in website ?
    Thanks . Have a nice day.

    If you are using a Container you just leave your image files in the home directory of your web application. And forget this idea about database. It´s not necessary in this case.
    To display the images just use HTML, <img src="url">.

  • Display Word Document as read only in VI pannel

    In a VI pannel I put an Active X container with the IE browser to display Word documents.
    The document are displayed properly but I want not give the user the possibility to make changes while viewing.
    Is there a solution to do so?
    (The documents are read-only and can not be saved.)

    Why use an IE container to display Word documents? You can place a word document directly in the ActiveX container. This seems a better choice.
    If you wish to totally block user-input, you can place a transparent picture control over the display of the Word document.
    Another alternative would be to convert the word document to a PDF and show this in an AcviteX container.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • I uploaded an rtf (word) document to icloud, but when I try to open in Pages, I get a message that it does not support rtf format. What is going on?

    I uploaded an rtf (word) document to icloud, but when I try to open in Pages, I get a message that it does not support rtf format. What is going on?

    Supported file formats for iOS Pages
    Import:
    Pages ’09 for Mac
    Microsoft Word - Office Open XML (.docx) and Office 97 or later (.doc)
    Plain Text files (.txt)
    Export:
    Pages ’09 for Mac
    Microsoft Word (.doc)
    PDF
    As you can see -  .rtf is not supported.

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Search text in PDF and MS Word document

    Can any body tell me how search text in PDF and MS Word document through Java code, any body has code or any suggestion to give
    Thank You
    Adnan

    Can any body tell me how search text in PDF
    and MS Word document through Java code, any
    body has code or any suggestion to giveYes.
    First, you need to work out how to read each document type from Java.
    E.g, for MS Word you could use Apache Jakarta POI - HWPF: http://jakarta.apache.org/poi/hwpf/index.html
    Then, you use Apache Lucene to index and search.
    See http://lucene.apache.org/java/docs/index.html
    ~D

  • Read,write and create word document with list data

    Hi,
    My requirement is that I have a custom list called List1 and which has a 4 (suppose XName, location, phone, email)columns and also have a Template document(.dot). If I click on save button , new document has to create from the Template document(.dot) and
    should modify the content depends on list columns.
    For that I need to read the document , find out the text where XName , location,,phone, email and replace with the list item data(user entered data). 
    Can anybody please refer links for read,write and create word document?
    Thanks in advance.

    Yes, you can using Office Open XML. I found it to be a lot more cumbersome and in the end not a money saving approach:
    https://msdn.microsoft.com/en-us/library/office/bb448854.aspx?f=255&MSPPError=-2147217396
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Image upload and display from database blob coloumn in ADF

    HI
    how can i upload and display image from database ( blob ) coloumn in ADF

    Hi,
    Take a look to this video: http://www.youtube.com/watch?v=_KYquJwYFGE
    AP

  • Problems while reading and displaying .pdf-Documents from Bfile

    Hi
    I want to read and display .pdf-Documents in Adobe-Reader that are stored as BFile. While displaying the Document Adobe Reader is showing several Errors like " ..less Picture-Data read than expected.. ". Is this a Buffer-Problem? or whatelse ??
    Thanks for help
    null

    PrintStream wr = new PrintStream(socket.getOutputStream());
    wr.close();I suspect this is the problem. You could try socket.shutdownOutput() - or you could just leave the streams alone and let socket.close() shut things down.
    Grant

Maybe you are looking for