How modify a ms word document in web dynpro
Hello,
I have a Web Dynpro that shows a .doc document with the OfficeControl but I would like to modify the document before showing. How can I do it?
The document have several fields that I have to replace with the corresponding values.
I have seen in Office 2003 you can save the document as a .xml and make the changes in that way but we have Office 2002.
Thank you in advance.
Hi Experts,
I am facing a similar situation.
I have NWDS04s version, 7.7.07, but I am <b>still not able to see the expertMode property</b> for the office control UI element.
Are there any SAP notes related to this, or any other Patch that i need to install?
Thanx in advance,
Alka.
Similar Messages
-
Reading and displaying Ms.Word document with web dynpro java
Hi,
I'm using NetWever developer studio 7..0.21.
I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible?
If possible , is there a blog etc.?
Thanks.Hello,
You have to use the Office Integration Library. Please, follow the documentation below:
http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
I hope this helps you.
Regards,
Blanca -
Attach Word document to Web template
Hello,
I attached Word document to Web template. When I run Web template I dont see this document anywhere.
How and where its possible to see it?
ThanksHi Aleksandrs,
Have you seen this:
http://help.sap.com/saphelp_nw04/helpdata/en/60/1c143bfaed272de10000000a11402f/content.htm -
How to insert a word document or an RTF document into RichTextEditor?
How to insert a word document or an RTF document into af:richTextEditor. I am using Apache POI for reading the Word document and getting its contents. I am able to display the whole content of the document except the table and image within the document. The data in the table is getting displayed as a string and not as a table inside the editor.
Can we insert a word/RTF document into a rich text editor?
Can we insert images into the rich text editor?
The following is the code that I used. On clicking a button the word document has to be inserted into the <af:richTextEditor>.
<af:richTextEditor id="rte1" autoSubmit="true"
immediate="true"
columns="110" rows="20">
<af:dropTarget dropListener="#{SendEmail.richTextEditorDrop}">
<af:dataFlavor flavorClass="java.lang.String"/>
</af:dropTarget>
</af:richTextEditor>
<af:commandButton text="Insert at position" id="cb2">
<af:richTextEditorInsertBehavior for="rte1" value="#{RichTextEditorUtil.docFile}"/>
</af:commandButton>
Java Code: I am using Apache POI for reading the word document.
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.extractor.WordExtractor;
public String getDocFile() {
File docFile = null;
WordExtractor docExtractor = null ;
WordExtractor exprExtractor = null ;
try {
docFile = new File("C:/temp/test.doc");
//A FileInputStream obtains input bytes from a file.
FileInputStream fis=new FileInputStream(docFile.getAbsolutePath());
//A HWPFDocument used to read document file from FileInputStream
HWPFDocument doc=new HWPFDocument(fis);
docExtractor = new WordExtractor(doc);
catch(Exception exep)
System.out.println(exep.getMessage());
//This Array stores each line from the document file.
String [] docArray = docExtractor.getParagraphText();
String fileContent = "";
for(int i=0;i<docArray.length;i++)
if(docArray[i] != null)
System.out.println("Line "+ i +" : " + docArray);
fileContent += docArray[i] + "\n";
System.out.println(fileContent);
return fileContent;Hi,
images are not yet supported. Its an open enhancement request for the rich text editor.
For tables, it seems they are supported but in a basic way (just HTML 4 style) if I interpret the tag documentation correct
http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_richTextEditor.html
Frank -
How to Append two word documents into single using java
How to Append two word documents into single using java
we tried this but it's not append the one word document to other
source code:public class AppendTwoWordFiles {
public static void main(String []arg)throws IOException
FileInputStream fi=null;
FileOutputStream fo=null;
try {
System.out.println("Enter the source file name u want to append");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
File f1=new File(br.readLine().toString());
System.out.println("Enter the Destination file name ");
File f2=new File(br.readLine().toString());
fi = new FileInputStream(f1);
fo = new FileOutputStream(f2,true);
byte b[]=new byte[2];
while((fi.read(b))!=-1);
fo.write(b);
System.out.println("Successfully append the file");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
finally{
fi.close();
fo.close();
plz reply me quickly ,,,what can i followUse this code ..
and give the path of the both file like this.....
source file ---- C:/workspace/Practice/src/com/moksha/ws/test/practice.text
destination file ---- C:/workspace/City/src/com/moksha/ws/test/practice1.text
import java.io.*;
public class AppendTwoWordFiles {
public static void main(String[] arg) throws IOException {
FileInputStream fi = null;
FileOutputStream fo = null;
try {
System.out.println("Enter the source file name u want to append");
BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
File f1 = new File(br.readLine().toString());
System.out.println("Enter the Destination file name ");
File f2 = new File(br.readLine().toString());
fi = new FileInputStream(f1);
fo = new FileOutputStream(f2, true);
byte b[] = new byte[2];
int len = 0;
while ((len = fi.read(b)) > 0) {
fo.write(b, 0, len);
System.out.println("Successfully append the file");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
fi.close();
fo.close();
} -
HT1284 How can I backup word documents and not have them crowd my screen? Thanks.
Hi. How can I backup word documents and not have them crowd my screen? I know, you guessed it. I'm a novice, but not ashamed!
Please explain what you mean when you say backup Word documents crowds your screen.
I don't see any connection between backup and your screen.
Allan -
I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??
iOS device backups are stored in your iTunes library.
Move your iTunes library to an external drive. -
How to convert a Word Document to SAP SCript standard text.
Hi team,
Does any one know how to convert a word document or text in Word format to standard text.
So that we can use that standard text in Script output.
This might be very useful if we need to convert a lot of text into standard text.Hi,
Create the name of the standard text you want in SO10.
When the editor is called up, select Text -> Upload and then browse for your file(s). Must be saved in RTF format in Word remember.
Cheers
Colin. -
How can I make word document window bigger. Have tried dragging bottom corner out & clicking on '+' sign but this does nothing?
Word - Microsoft Support
-
How to convert a word document into the PDF format?
Please instruct me step by step on how to convert several Word documents into the PDF format?
If properly installed and updated (depending on the WORD version), you can simply do any of the following:
1. Open the doc in WORD and select Print, choose the Adobe PDF printer, print.
2. Open the doc in WORD and go to the Acrobat menu in WORD and select create PDF (this uses PDF Maker).
3. Open the doc in Acrobat and the conversion should be done based on PDF Maker. -
How to embed the Word Document and PDF file into Crystal report?
How to embed the Word Document and PDF file into Crystal report?
I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
Is there any solution to show word doc / PDF file in CR?Symptom :
When embedding a pdf document into a Crystal Report, only the one page shows.
Reproducing the Issue
Environment:
Crystal Reports OLE object
Cause
An OLE object only displays the first page.
Resolution
Embed multiple objects, one for each page
Or
Use a hyperlink to the object instead
Hope this helps!
Regards,
Vinay -
How do I store word documents on my iPad or iPhone 5?
how do I store word documents on my iPad or iPhone 5?
Have a look at the following:
http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1 -
How do I find word documents on iCloud?
I have logged on to icloud but when I click on iWork, the only tabs are for keynote, numbers and pages. There is no tab for word documents but then how do I access word documents on iCloud?
I have no idea as I am not ever going to use a Cloud system for storing my personal files. I have computers for that. Your best bet would be to use Google and type in "Uploading files to Apple's iCloud system". I bet you will get all the info you could ever ask for.
Good Luck and Best Wishes
mgmf wrote:
Oh ok, that might be it. But how do I upload things from the documents folder onto iCloud? -
Hello All,
I have a requirement where i want to show Adobe document on Web Dynpro iview in specific area.
Is it possible to show Adobe document may be 4X6 Area in the iview.
How can i do this? Any help would highly appreciated.
Regards,
LearnerThanks for your reply. Those links very useful. I tried to follow the same example, it is throwing
java.lang.Exception: Incorrect content-type found 'text/html'
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode(ClientMimeMessage.java:120)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:956)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1437)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)
Detailed Exception
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
java.lang.Exception: Incorrect content-type found text/html
What is the reason for this? I am using NWDS 7.0.12.
Is there any way i can find all the required services are running? I am testing in my local system.
Regards,
Learner -
How to create a OTR Text in Web Dynpro ?
Hi All,
Please help, How to create a OTR Text in Web Dynpro ?
Urgent.
Thanks in advance.
Kaleem.Hi Kaleemullah,
To create OTR Text, T-Code is SOTR_EDIT. If you run this transaction then one screen will appear. There you can choose Long Text or Short Text based on your
Text. You can choose language also. In Text field you can enter your text. You can put WDYV in your Object Type field. In Text block Length can be increased to 25 as it may be problem if language conversion of Text happens. You must fill your package field and save the OTR.
I hope you can be able to create OTR Text now.
Best Regards,
bansidhar
Maybe you are looking for
-
File I/O error when exporting a report
Post Author: Beth CA Forum: Exporting Hi,I have a program that runs as a scheduled task daily that runs four reports and exports them to rtf format. This process has been running fine for a long time (several years). However I've noticed now that I
-
Problem placing an extraction hint
Hi, I have a mapping that first uses a join between four tables, and then does nineteen lookups. This generates an SQL with an execution plan that is not optimal, and I need to place a hint at the top of the generated query. As far as I can tell Im n
-
What is the best strategy to purge a set of database tables.
Hi, I have 6 tables I would require to purge data from. 1 parent table - All of the data that needs to be purged are from a partition created on this table 5 child table - Using the parent record identifier, these records needs to be purged as well.
-
Exposing ABAP function modules as web services
Hi All, I am trying to expose function modules as web service but when i click on 'Web service Homepage' button it is throwing error : "Setting for J2EE server do not exist". Could you please guide me through this? Regards, Abhijeet.
-
Is there an easy way to compile an application via the command line for a JSC application? What about generate the WAR. I am sure it can be done using Javac, but am wondering if there is a batch file or ANT script I could use. Thanks