Problem in using Office Control to launch ms word
Hi Armin,
What u said is right, but the data type of both the attributes in view context and controller context are same (binary). I had placed all the code in component controller only and trying to assign the Byte array to controller context (binary) attribute only. I think there might be some problem with supplier function. Plse check it once...
Regards
Ramesh.k
Hello,
I do not know the source of your problem, but
a.) Check if the db colum types match the parameter types
See http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conMappingDBFieldsToJavaTypesInTheDBCtrl.html for more info
b.) command-type is only used for rowset controls.
-Kai
Similar Messages
-
Error received on deploying after using Office Control in NWDS.
Dear All,
I received the below mentioned error after deploying an application on the portal using Office Control in NWDS.
com.sap.tc.webdynpro.progmodel.context.ContextException: Path null does not point to an attribute, but to [email protected]
I used the below mentioned link to craete this application.
everything has been done as per the procedure. Please notify me the solution for this issue.
Thanks and Regards,
Soumyadeep.Hi Soumyadeep,
Have you binded the "dataSource" property of the UI element properly to a binary attribute. Because this error says you have not binded some mandatory property in iView.
So may be dataSource or some other property which is mandatory is not mapped.
Ninad -
Excel import export using Office Control
Hi,
We have the requirement to provide a feature like an excel uplaod and download in our UI (WD ABAP).Basically we have some WD table view and we need to collect all the data in each cell and then download the data in an excel file.Similarly we need to get the data in the Excel and fill the table view with this data from the excel.
Is this possible through the Office Control?I checked out the examples in SIOS but my impression was that it more or less embeds office objects(excel,word etc) in Webdynpro container,but does not really get the data to be filled in an internal table.Also I am not sure whether I can download data from my WD table view to an excel file using this.
Can anyone please tell me if there is some way to do this through an office control.If not what are the options available for me to achieve this functionality.
Thanks and Regards
SouravHi Sourav,
If you use WDP ALV table, it has an 'Export' functionality which will export the contents of the table into an Excel.
Regards,
Wenonah -
Problem in using database control in JPD.
Hi All,
I am developing a JPD which also involves using DB control. The connected DB is Oracle 9.2.
I have created DB control with "insert" method and one with "update" method.
When i call "insert" method in JPD by dynamically passing values, it works fine. I have a "task control" in a JPD and once the task is complted by a specific user, again I am calling "update" method.
Here it fails to update the DB. The strange part is that the perform node executes after the control send node and there are no exceptions. Heres my update method
* @jc:sql command-type="update" statement::
* UPDATE PROPOSAL_INFO SET status = {status} WHERE track_num = {trackingNumber}
* @common:message-buffer enable="false"
void updateStatusAndDesc(String status,String trackingNumber);
The strange part is that, If I hard code the "status" and "trackingNumber" value instead of passing dynalically by using (ie without using {}), then update happens.
Can somebody suggest me the solution for this problem??
Thanks in advance,
Prashanth Bhat.Hello,
I do not know the source of your problem, but
a.) Check if the db colum types match the parameter types
See http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conMappingDBFieldsToJavaTypesInTheDBCtrl.html for more info
b.) command-type is only used for rowset controls.
-Kai -
Office Control does not display word document
HI all,
I followed the example code to display a word document in the office Control UI, but the display remains blank when I push the button to 'show document'.
I do not have MS Office installed on the server so I have a wordpad named example.doc on the C drive. Can I read the data from wordpad and display it on the Office Control?
Thanks
Jay.> Thanks all,
> I have Office 2003 installed on the client but not on
> the server. The bytes[] array gets loaded with the
> string '[B@10e770f', but the display stays empty.
>
> Jay
Hi Jay,
I need to use this feature as well. Did you get it to work. Can you display and edit a Microsoft Word document from within a browser page. It would be good to know that you have been successful.
Jesse -
Problem in use of control statments
hii frds i m new in abap development
plz help me...
i m creating a classical report...i hav selected data in final internal table i_final .
fields are regio , werks
let the data r following regio---werks
019 ---1001
019-----1081
019------1081
019-------1081
030----
1015
030-------1015
i want output in this format
019-----1001
019---1081
1081
1081
030----1015
1015
i m using following codes
FORM DISPLAY_DATA .
SORT I_FINAL BY REGIO WERKS .
LOOP AT I_FINAL .
AT NEW REGIO .
WRITE : / I_FINAL-REGIO .
ENDAT .
WRITE : 5/ I_FINAL-WERKS .
ENDLOOP .
ENDFORM.
please tell me correct code............thanks in advance
ENDFORM .
Edited by: vikram00797 on Sep 15, 2009 12:28 PM>
vikram00797 wrote:
> I know i m very close to solution ..i hav change it many times .but not getting correct output.can u tell me correct code......
Hello Vikram,
In the output are you getting '*' ? If yes, then take the contents of the header line in a dummy line & display the record :
FORM DISPLAY_DATA .
DATA: L_FINAL LIKE LINE OF I_FINAL.
SORT I_FINAL BY REGIO WERKS .
LOOP AT I_FINAL .
L_FINAL = I_FINAL.
AT NEW REGIO .
WRITE : / L_FINAL-REGIO .
ENDAT .
WRITE : 5/ L_FINAL-WERKS .
ENDLOOP .
ENDFORM.
Hope this helps.
BR,
Suhas -
Spread sheet in Webdynpro ABAP using Office control
Hi Experts,
I need to create an excel sheet in an ABAP Webdynpro application and fill its data
programatically in my code i.e. I cannot read data from an existing file and populate the data source.
Is it possible to fill its data source in any other way, example from an internal table.
Please suggest.
Thanks and Regards,
Sadaf.ch4eck this out:
excel -
Webdynpro Abap Office control problem
Hi Gurus,
I'am using the office control to display stored word document and I'm facing the following problem :
when I visualize a word document from my webdynpropage, I got access to the toolbar menu(print save and all the tools displayed on the top of the control) but once I open another page to visualize another word document I loose the access to the toolbar menu in my first page, but I can do so in my second opened page.
It seems that I can not use the office control toolbar in multipple document. and once I open a page this feature is disabled on the previews pages.
any idea please?
Regards,
SimoHi
Try to use thid below code I think it will solve your problem.
Code for File download in action method
DATA lr_conv TYPE REF TO cl_abap_conv_out_ce.
DATA lv_data TYPE string.
DATA lv_xfile TYPE xstring.
lv_data = 'Example text, which will be opened in MS Word.'.
cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
lr_conv->convert( EXPORTING data = lv_data
IMPORTING buffer = lv_xfile ).
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING i_filename = 'wd4a.doc'
i_content = lv_xfile
i_mime_type = u2018applicaton/mswordu2019)
Thanks & Regards,
Ravi Kiran. -
Hello Everyone,
I am stuck with a problem using office control.
The requirement is to display the excel file contents present in the application server to the office control.
The problem is with reading the contents of the excel file.
here is the method i used:
data:
mime_repository type ref to if_mr_api,
content type xstring,
url type string value '/MIG/D/TEST/TEST.xls'.
mime_repository = cl_mime_repository_api=>get_api( ).
call method mime_repository->get
exporting
i_url = url
importing
e_content = content.
* DATA is binded to the office control contents
wd_context->set_attribute( name = 'DATA' value = content ).
The GET method returns a sy-subrc = 3, which means file not found.
whereas the same code works for another application server with its path.
Where am i going wrong? or is there any alternative method to get the content from the file?
Regards,
Kinshuk
Message was edited by:
Kinshuk SaxenaHi Kinshuk,
I think you should place your file in the exact folder where WDA can recognize, I mean try placing it @ the folder...
"/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration".
Regards
Raja Sekhar -
Problems to create data control in JDeveloper 11g
Hi everybody , I´m having problems to use Data Control in Jdev 11 , I create an jpa , and with my entities I create the data control component , but when I try to create a JSF page I can´t use data control, where is data control component palette ?
Please post JDev 11 questions on the JDev 11 forum
JDeveloper and OC4J 11g Technology Preview
Follow this tutorial to see the data control palette for EJB/JPA
http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
Here is how it will look like:
http://www.oracle.com/technology/obe/obe11jdev/11/ejb/images/t50105.gif -
hi all,
i cannot do using office control..
please call me how about office control(ms_word and ms_excel)???
how is prepared for office control???
Reply me soon......
thanks,
s.sureshHi,
for installation prerequisites, see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm">this</a>, and for information on the OfficeControl, see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm">that</a> and the examples in the system in package SIOS.
Regards, Heidi -
Dear All,
I am using Office Control in my WDA. I have created an attribute of type xstring and bound it to the office control element.
Running the application, I am displayed with a MS word document which is input enabled.
I have written code corresponding to onSave in which I want to download the contents written in the MS Word document onto my desktop.
I am unable to do this, and whenever I click on the 'Save' button or do a Ctrl+S, there is some error coming up saying 'CAcfControl: SetControlProperty|Could not find entry for property |HRESULT=-2147467259(Unspecified error)'.
Please tell me a way around for this.
Regards,
Prosenjit.Hi,
Thank you Thomas for your time.
Before doing that I would like to check the onSave code of mine.
is it possible to have a sample code for the onSave while using Office_Control.
Regards,
Prosenjit. -
Display MS word file in Office control
Hi all,
I am using the Office control UI element to display a MS word file in WD application. I have created a Mime object for the word file and get this file data into a Xstring attribute, and bind this attribute with the datasource property of the Office control.
But at the runtime I am not able to display the Word file, it displays only a White colour container with text SAP IOS. Can anyone suggest me how I can get the word file in WD component using office control.
I have also checked SOIS pakage, but didn't get any solution from the example given in this package.
For your reference I am using the below code to get the mime object in Xstring attribute.
DATA:
mime_repository TYPE REF TO if_mr_api,
content TYPE xstring,
url TYPE string VALUE '/SAP/BC/WEBDYNPRO/SAP/ZTEST_SAN5/TEST.docx'.
mime_repository = cl_mime_repository_api=>get_api( ).
CALL METHOD mime_repository->get
EXPORTING
i_url = url
IMPORTING
e_content = content.
DATA lo_nd_office TYPE REF TO if_wd_context_node.
DATA lo_el_office TYPE REF TO if_wd_context_element.
DATA ls_office TYPE wd_this->element_office.
DATA lv_test TYPE wd_this->element_office-test.
navigate from <CONTEXT> to <OFFICE> via lead selection
lo_nd_office = wd_context->get_child_node( name = wd_this->wdctx_office ).
get element via lead selection
lo_el_office = lo_nd_office->get_element( ).
lv_test = content.
Set single attribute
lo_el_office->set_attribute(
EXPORTING
name = `TEST`
value = lv_test ).
This lv_test having the Xstring data after execution but didn't set this data as word file at runtime.
Please suggest if anyone have any idea on this.
Thanks
Sankethi,
try this in browser..
tools->internet options->security->custom level
here you will find Active x controls and plugis..
enable all of them and try your applications..
if it is helpful pl give some points buddy:-)
regards,
Kranthi. -
Extract text content from office control - word
Hi,
I am using office control for word for entering long text.
by what way can i extract unformatted text from office control?
Thanks & Regards,
-Hareshi've tried using GETCONTENT method of IF_IOS_WORDPROCESSING, but I don't know exact way of using it.
If this is the one which can help me to get text contect, then can anybody tell me how will I be able to use it? -
Hi,
I have been using office 365 small business premium product. Since last 3 days I am facing problems with all the Office products. I was using Microsoft Word, and I was prompted to install "Proofing
Tool" which I installed. After that Outlook is giving a message "An OLE registration Error occurred. Please re-install" whenever I press Send/Receive button. Since then Word and Excel are also giving problem. I have uninstalled the Proofing
Tool but the problem persists. Please assist urgently.
RegardsHi,
You may need to register ole32.dll and repair Office to solve this problem.
To register ole32.dll, please follow the steps below:
1. Press Win + R, type "cmd" in the blank box, press Enter.
2. In the Command Prompt, type Regsvr32.exe %Windir%\System32\Ole32.dll and press Enter.
3. A regsvr32 window popups, that tells you that the DllRegisterServer succeeded.
Then please go to Control Panel -> Programs and Features, try repairing Office, check if this helps.
Regards,
Melon Chen
TechNet Community Support
Maybe you are looking for
-
Safari 2.0.4 with upgrade to 10.4.11 wont work, help, please
I am just beside myself. Safari wont work. I have broadband and all is well there, I've run disk warrior, all is well there. I've run disk first aid to check and verify disk. All well there. I upgraded to OS 10.4.11 from Upgrade on my g5, and safari
-
"TNS: Protocol adapter error" while creating a database
Hi All, I´m new to Oracle and trying to create a database. We use Oracle 8.1.7 I´m using the Database Configuration Assistant. The problem is when creating the database I get the error: TNS-12560 TNS: Protocol adapter error Any help will be really ap
-
Displaying photos from an XML file
Here's my next little challenge: have to build an app that shows a bunch of photos (listed in an XML file) based upon certain criteria in the XML data. First view will show ALL the photos, and then the user will whittle down the choices/photos based
-
HELP! IPad mini not charging on certain wall plus
I had my iPad mini for almost a year and i would always charge it next to my bed. All of a sudden I wake up and I see it almost to zero percent. I use the 5W and 10W and would say not charging. But it will charge normally with my iPhone in the same w
-
How do I turn off app resume on start up?
How do I turn off application resume when my user logs in? When my comp starts up I want nothing to auto launch except what I specify in my users Login Items. J