Bold data of a excel through forms 6i
I can send data into excel through forms 6i using DDE.POKE command. But I can not bold the data of a row.
Pls help me ASAP.
Hi!
I have a same problem, please if you found the solution email me ([email protected])...
Thanks!!
René
Similar Messages
-
Uploading data from MS-Excel to form
To upload from Microsoft Excel files (.xls) to display in the form the following need to be done.
Create two blocks in the first block create three fields in which the first is text item. Name it as TXT_FILE_NAME. The other two items are buttons. Name it BTN_BROWSE and BTN_UPLOAD respectively.
In the second block, make it a multi-record block. Create 15 text items inside the second block with naming such as OUTPUT1 to OUTPUT15.
Now do the following:
1. The following is the code inside BTN_BROWSE
DECLARE
filename VARCHAR2(256);
BEGIN
filename := GET_FILE_NAME(File_Filter=> 'Excel Files
(*.xls)|*.xls|');
if filename is not null then
:txt_file_name := filename;
end if;
go_item('txt_file_name');
END;
2. In the BTN_UPLOAD code do the following
DECLARE
AppID PLS_INTEGER;
ConvID PLS_INTEGER;
Buffer VARCHAR2(240);
ROWCOL VARCHAR2(20);
CNT NUMBER;
BEGIN
AppID := DDE.App_Begin(<complete-path-of-excel-executable>||:TXT_FILE_NAME, DDE.App_Mode_Minimized);
ConvID := DDE.Initiate('EXCEL', :TXT_FILE_NAME);
GO_BLOCK('BLOCK2');
FIRST_RECORD;
FOR I IN 5 .. 500 LOOP
CNT := 0;
FOR J IN 1 ..6 LOOP
BUFFER := '';
CNT := CNT + 1;
DDE.Request (ConvID, 'R'||I||'C'||J, Buffer, DDE.Cf_Text, 240);
BUFFER := RTRIM(LTRIM(BUFFER));
BUFFER := SUBSTR(BUFFER,0,LENGTH(BUFFER)-2);
IF BUFFER IS NULL THEN
EXIT;
END IF;
COPY(BUFFER,'BLOCK2.OUTPUT'||TO_CHAR(CNT));
END LOOP;
IF BUFFER IS NULL THEN
EXIT;
END IF;
CREATE_RECORD;
END LOOP;
DDE.Terminate(ConvID);
DDE.App_End(AppID);
FIRST_RECORD;
END;
=====================================================
Author : Anantha Narayanan
email : [email protected]
=====================================================First link explains all about your question, Refer second one for more ideas.
Reading Excel Sheet from Java without using any Framework
Enhanced File Upload - Uploading and Processing Excel Sheets
Regards
Vinod -
Upload data from excel to forms 9.0.4 using webutil 1.0.5
Hi,
can anybody provide me the code how to upload the data from excel to forms 9.0.4 using ole2 fuction. From forms to excel it is working fine.
RegardsHello,
Instead of selecting one key figure in data view, please select all key figures of the planning book and then try all the steps which you have carried out.
please revert after you carry out this.
Regards,
Prafulla -
How to upload data from excel to form using webutil
Hi,
In the sample provided by Oracle
http://www.oracle.com/technology/products/forms/htdocs/webutil/howto_ole.html
Note 247606.1 How to Copy Records From a Form Into Excel
It shown the methods of how to copy data from form to excel but is there any sample to provide the step on how to read the cell from excel into Form in 10g.declare
args client_ole2.list_type;
application client_ole2.obj_type;
vworkbooks client_ole2.obj_type;
vdoc client_ole2.obj_type;
vworksheet client_ole2.obj_type;
vrange client_ole2.obj_type;
begin
-- create app object
application := client_ole2.create_obj('Excel.Application');
client_OLE2.SET_PROPERTY(application, 'Visible','True');
-- get workbooks object
vworkbooks := client_ole2.get_obj_property(application, 'Workbooks');
-- and open a file
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 'c:\tp_ae.xls');
vdoc :=client_ole2.INVOKE_OBJ(vworkbooks,'Open',args);
client_ole2.destroy_arglist(args);
-- get a worksheet object
-- for this to work you need to know the sheet name or its index
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 1); <-- name or index
vworksheet := client_ole2.get_obj_property(vdoc,'Worksheets',args);
client_ole2.destroy_arglist(args);
-- get a range object which in this case is just a cell
-- for this to work you need to know the cell coordinates
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 'B6');
vrange := client_ole2.get_obj_property(vworksheet,'Range',args);
client_ole2.destroy_arglist(args);
-- and here you get the value
message(client_ole2.get_char_property(vrange,'Value'));
-- release objects
client_ole2.release_obj(vrange);
client_ole2.release_obj(vworksheet);
client_ole2.release_obj(vdoc);
client_ole2.release_obj(vworkbooks);
client_ole2.release_obj(application);
end; -
How can i save and retrieve blob data through forms and reports...
I have blob data type column and I want to save word, html, gif
document in oracle database through forms 6 and retrieve the
data into forms and reports.
Details : I want to open .doc,.html,.gif file through a button
and save it ..and i want retrieve the data into text item same
in reports....
If anybody have the answer then send me at
[email protected]use ole container
initialize the container with the filename (doc or gif)
Edited by: arshid on Feb 8, 2009 1:57 PM -
Export data to MS Excel in Adobe interactive form
Hello Experts,
I am using Webdynpro Java and ALCD 8.2. Can anyone help me out with functionality of Exporting adobe form data to excel file.
Thanks in advance,
SwamiHi Swami,
When you say exporting data to a excel spread sheet.
Does that mean once the form is generated then user should able to export to excel, if so below is the link for that.
http://forums.adobe.com/thread/709565?tstart=1
if its like for an interactive forms where user submits data the on submit event if you want to publish the form data to a spread sheet, I believ there should be a lot of posts on generating CSV files from ABAP code. this is also possible from WDJ provided if you have the respective jar files (on submit even, read data from the context, process to required format, call the excel API and write to it.)
If from ABAP handler the post from the other blogger here might help.
does this help, let me know if you are looking for something more specific.
Cheers,
Sai -
How to export data to 2 tabs in excel from form with two tabs
Hi friends
i am now faceing a prbs of exporting data to excel to different tabs.
ex:- i have a multiple records form with two tab . i want to export data corresponding to excel as two tabs.
can anyone suggest me how can i export data to 2nd tab.. is any functions or procedure to help me .Hello,
at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the packages behind second and fourth link support more than one worksheet. And both describe how to do it.
Regards
Marcus -
How to Chage the data format through Forms Personalization
Hi Experts,
I would like to do like,
for example in the oracle form has two fields called
start data(DD-MON-YY)
end date(DD-MON-YY)
but actullay i would like to have like
start date(DD-MON-YY HH24:MI:SS)
end date(DD-MON-YY HH24:MI:SS)
It can be done through forms personalization?
we are using Apps 11.5.8.
Please help me to do it.
Regards
R.SundaravelTry using FORMAT_MASK property in Forms personalization
Property name - FORMAT_MASK
Value - DD-MON-YYYY HH24:MI:SS -
User Data Security through forms.
Hi All,
I am working on a forms(10g) which once deployed in application env. will have different level of accesses to different users , like view,edit,etc.
could you please let me how to set up this user data security ,and access levels ...
Is this to be done through forms development , or any environmental setups required?
Any quick pointers in this regard are highlu appreciated.
Thnaks.Hi,
you can define your user level on oracle form,but these user only work on form level not on database level direct,you can make a proper setup form or role form to provide access to different user but you must mentioned these security on each transactional form.You also make a global procedure as security which maintain security only on form.Hope it'll helpful for you.
Thanks
Baloch. -
Export to Excel total Form data
Hi all,
I have jsff Fragment , in that i have multiple tables and output text components. I have to export all this page data to one excel page. Is there any way to achieve this functionality in ADF 11g.
Thanks in advance....
Awaiting for replyTo export a JSF Data Table to excel
http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel
To export ADF
http://blog.lebrijo.com/adf-view-masterdetail-editable-with-lovs-and-excel-exporting-option/
http://www.baigzeeshan.com/2010/04/exporting-table-to-excel-in-oracle-adf.html
http://udayarocks.wordpress.com/2011/06/05/in-11g-how-to-export-the-adf-table-data-into-excel-spread-sheet/
http://saumoinak.blogspot.ca/2011/04/export-collection-in-adf.html
Edited by: dvohra16 on Aug 31, 2012 8:41 AM -
I am trying to extract data from an Excel spreadsheet using the DDE.excel functionality, to manipulate through forms to be stored against the Oracle database.
Whereas this works very well in a client-server environment, I am experiencing issues with (static) path definition (of the excel.exe, and the xls) when trying to implement through a web browser. I am using forms 6i against an Oracle 8i database. Does anyone know a way around setting the path or using different functionality. Any advice would be appreciated.Out of all the forums on the entire site, you chose to post this in the Member Feedback section?
Perhaps you didn't notice the BOLD note at the top stating technical questions wouldn't be answered? -
Report is executing in background and need data(output) in excel format
Report is executing in background and need data(output) to get downloaded in excel format in my PC from an internal table;;in any drive i.e. C: or D: .When executing in backround it prompt to user with which location excel file to be saved and the name of file.How to download in background in excel format?
Edited by: PRASHANT BHATNAGAR on Aug 26, 2008 6:24 AMHi
Download a report to excel with format (border, color cell, etc)
Try this program...it may help you to change the font ..etc.
Code:
REPORT ZSIRI NO STANDARD PAGE HEADING.
this report demonstrates how to send some ABAP data to an
EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
TABLES: SPFLI.
DATA H TYPE I.
table of flights
DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
*& Event START-OF-SELECTION
START-OF-SELECTION.
read flights
SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
display header
ULINE (61).
WRITE: / SY-VLINE NO-GAP,
(3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
ULINE /(61).
display flights
LOOP AT IT_SPFLI.
WRITE: / SY-VLINE NO-GAP,
IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
ENDLOOP.
ULINE /(61).
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-007
EXCEPTIONS
OTHERS = 1.
start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-008
EXCEPTIONS
OTHERS = 1.
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - start
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
PERFORM ERR_HDL.
tell user what is going on
SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - end
disconnect from Excel
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:\SKV.XLS'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
Regards
Murali Papana -
Regarding Download data in MS Excel format and Check box
Hi Friends
In my Project some task is here i.e. select check box of the particular Customer number click on submit button. That time display of those customer details
How we can do this if have any coding of this application can you sent me.
And one more query
One form having some data click on submit button that data will display in Excel format and Download data in MS Excel format
Can you tell me how to work on these two concepts?
Regards
VijayDear Vijay,
Please go through the [Download data in MS Excel format|http://wiki.sdn.sap.com/wiki/display/WDJava/ExporttoExcel(WithoutthirdpartyAPIs)]
to download the table contents to MS Exel.
& Also go through [How to Add Dynamic Checkboxes in a Web Dynpro Java |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90915916-c158-2c10-6fa0-f0e25f3ccd6b?quicklink=index&overridelayout=true] for check bok UI.
Warm Regards,
Upendra Agrawal -
Bold the words in excel..
Hello Guys..I have been here before with my questions and everyone helped me to get the solution.. !!
hope you can help me out this time too..thanks !!
I am exporting table data to an excel.. through pl/sql procedure ..using utl_file package. Now I have to bold the first row of that excel (column names).
Thanks !!A nice »trick« is also to generate simple HTML and store it with a XLS extension. Excel will open it according to the formats given in the html table.
An example to follow:
declare
bl boolean;
param_val owa.vc_arr;
thepage htp.htbuf_arr;
irows integer := 999999;
cl clob;
begin
param_val (1) := 1;
htp.adddefaulthtmlhdr (false);
owa.init_cgi_env (param_val);
bl :=
owa_util.tableprint (ctable => 'emp',
cattributes => null,
ntable_type => owa_util.html_table,
ccolumns => '*',
cclauses => null,
ccol_aliases => null,
nrow_min => 0,
nrow_max => 500);
htp.get_page (thepage, irows);
for i in 1 .. thepage.count
loop
cl := cl || thepage (i);
end loop;
dbms_xslprocessor.clob2file (cl, 'TEMP', 'emp.xls');
end;
/ -
Hi all,
Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
before to push that data to an sql server.
Any suggestion , book reference , link is acceptable
thanks in advance
CRISTINA& MICROSOFT ForumHi Cristina,
Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
http://henry-chong.com/2010/12/infopath-validation-gotcha/
Thanks
Daniel Yang
TechNet Community Support
Maybe you are looking for
-
Oracle8 + Hibernate3.0.5 + Inheritance with union-subclass
Hibernate version: 3.0.5 Name and version of the database you are using: Oracle8i (8.1.7.0) Mapping documents: Being.hbm.xml <hibernate-mapping default-access="field"> <class name="persistent.Being" abstract="true"> <id name="id" unsaved-value="0" co
-
TS1424 Some songs I've downloaded are not the full track. What should I do?
I've downloaded an album but some songs only play half the song. I don't want to pay for these songs again. What should I do?
-
Hello, i have installed Tomcat in a path with whitespaces. Our Application use RMI (as server componend) to communicate with other Applications. when I start Tomcat i get an Exception like this: (by the way: no protocol: Audit -> Audit is a part of t
-
How can I upgrade my CS5 Design Premium Student and Teacher Edition into CS6 Master Collection? Thank you.
-
HTTPS mode for OC4J - Very Urgent
Hi, I am trying to implement HTTPS mode with OC4J for our internal application. The Server Configuration and how I tried to implement is detailed below. The Server Configuration : Operating System : Linux 7.1 Java Development Kit : j2