Generating Excel Sheet from Reports ......
Hi,
I want to generate reports both in Oracle Reports 6.0, as well
as in Microsoft Excel. The simplest solution I thought was to
generate the Oracle Report first and then, give a button on the
report, which when pressed, can scan the data in the generated
report and write it into an Excel file. The writing part to
Excel file, I can do by using the OLE2 automation. I am not able
to find a way to read the data in the generated report
programatically. Is this possible and if yes, then can anyone
suggest me a way to do this. Is there an alternate solution to
this problem.
regards,
Abhilash
Hi ,
Modified your code .
public void generate(IPortalComponentRequest request) throws Exception {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();
HSSFRow row = sheet.createRow(3);
HSSFCell cell = row.createCell((short)0);
HSSFCellStyle cs1 = wb.createCellStyle();
HSSFCellStyle cs2 = wb.createCellStyle();
HSSFCellStyle cs3 = wb.createCellStyle();
HSSFDataFormat df = wb.createDataFormat();
HSSFFont f = wb.createFont();
HSSFFont f2 = wb.createFont();
f.setFontHeightInPoints((short) 12);
f2.setFontHeightInPoints((short) 10);
cs1.setFont(f);
cs1.setDataFormat(df.getFormat("#,##0.0"));
cs2.setFont(f2);
cell.setCellValue(1);
row.createCell((short)1).setCellValue(1.2);
row.createCell((short)2).setCellValue("This is a string");
row.createCell((short)3).setCellValue(true);
HttpServletResponse res = request.getServletResponse(true);
try {
res.setContentType("application/vnd.ms-excel");
wb.write(res.getOutputStream());
}catch(Exception e) {}
Check this blog for more
Create an excel file from JAVA using HSSF api
Similar Messages
-
Generating Excell Sheet using Reports 9i
Hello,
I wanna know how can I do to generate one excell sheet using reports, without
use the option that4s generate text file using tab. I wanna know if someone have
example codes, or library4s.
Thanks,
Paulo SergioHere are some notes we created from the demo below. This works great for generating true formated excel output in 9i Reports using 9ias Rel2.
Notes from
http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
Output to Excel with Oracle9i Report
1. Create an Excel template for the report. It should contain generic information such as title, logo and column headers
2. Cretae a sample line of data in the spreadsheet
3. Save the Excel spreadsheet as a Web page. File | Save As Web Page
4. Open the Web page you just created in Reports Builder
5. Double-click on Web Source node to display the HTML code for the Excel spreadsheet
6. Note how Excel generated HTML and XML code for the spreadsheet you created. Reports Builder also adds its own JSP tags
7. Add the Data Source An SQL Query
8. Modify the Web Source. Now that youve written the query, you can modify the Web source to tell Reports Builder to display your report in Excel.
9. Click on the Web Source icon in the toolbar.
10. To force the browser to open MS Excel it is necessary to change the HTTP Content Type to a specific MIME Type:
application/vnd.ms-excel
Insert the following line immediately before the <rw:report id=report> tag
<%@ page contentType=application/vnd.ms-excel %>
(This is a standard JSP directive to set a MIME Type (Content Type) )
11. To respect Excel format, you should delete the blank lines above the <html> tag.
12. Now, use Oracle 9i Reports JSP tags to add the data retrieved by your SQL Query to the report.
13. Search for the sample line of data you added to your Excel spreadsheet
14. Each line is saved as an HTML Table Row tag ( <tr> ).
15. Each column is mapped as an HTML Table Data tag ( <td> ).
16. Using Reports JSP Tags, add a Reports repeating frame tag to loop around the Data Model group.
17. To help, show the Object navigator next to the Web Source Window. All group information is now visible in the Object Navigator
18. Enclose the sample line of code in the Web source with the Reports9i JSP repeating tag.
Use from menu Insert | Repeating Frame at beginning of sample
Move the closing repeating tag after the </tr> tag.
Start of the repeating tag would be
<rw:foreach id=foreach src=>
Ending of the repeating frame would be
</rw:foreach>
19. In the opening of the repeating tag (<for each>), add the name of the group the tags enclose. JSP custom tags require a unique identifier.
For example: <rw:foreach id=gEmpNoId src=G_EMPNO>
20. Now, map the cells of the Excel spreadsheet to the corresponding field from your data model.
Select on the data value. From menu select Insert | Field. The source of the tag is the name of the field in the query.
21. Repeat the operation for each field of the report. Note: do not forget to specify a unique identifier for each field.
22. The code now contains a repeating frame. You have also mapped each cell in the Excel spreadsheet to the corresponding field in the data model
23. Save the report as a Reports JSP. You can test the report using the Run Web Layout icon in the toolbar
24. The execution of a Web Layout report from Reports Builder creates a temporary HTML file and launches the browser. The browser does not launch Excel because the document is saved as an HTML file. To launch Excel from the browser you need to test it from Reports Server.
25. In order to have the report appear inside Excel, you need to execute it with the Reports Server under OC4J. To do this you need to:
First, start an OC4J instance from Oracle 9iDS see How to Execute Reports Services from Oracle 9iDS on OTN. Then, copy the JSP to a directory. For example: $IDS_HOME/reports/j2ee/reports_ids/web/test
26. Enter the URL to execute the jsp. The JSP is executed from an OC4J instance.
http://reports9iTestServer:8888/reports/test/ListOfEmployees.jsp?userid=scott/tiger@ora901
27. The browser launches Microsoft Excel and displays the data from your report. -
Generating EXCEL sheet from an iView
hiii......
i've developed a iView which holds list of users in a dropdown list box....and a button...
now i want this data to be filled in a excel sheet when i click this button.....
can some one send me sample code for this task...
i have some code which doesnt work.......
i cudnt debug this.....
plz go through.......
import java.io.FileOutputStream;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFDataFormat;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public class XLSGen {
public void generate() throws Exception {
HSSFWorkbook wb = new HSSFWorkbook();
FileOutputStream fileOut = new FileOutputStream("workbook.xls");
HSSFSheet sheet = wb.createSheet();
HSSFRow row = sheet.createRow(3);
HSSFCell cell = row.createCell((short)0);
HSSFCellStyle cs1 = wb.createCellStyle();
HSSFCellStyle cs2 = wb.createCellStyle();
HSSFCellStyle cs3 = wb.createCellStyle();
HSSFDataFormat df = wb.createDataFormat();
HSSFFont f = wb.createFont();
HSSFFont f2 = wb.createFont();
f.setFontHeightInPoints((short) 12);
f2.setFontHeightInPoints((short) 10);
cs1.setFont(f);
cs1.setDataFormat(df.getFormat("#,##0.0"));
cs2.setFont(f2);
cell.setCellValue(1);
row.createCell((short)1).setCellValue(1.2);
row.createCell((short)2).setCellValue("This is a string");
row.createCell((short)3).setCellValue(true);
// HttpServletResponse res = request.getServletResponse(true);
// res.setContentType("application/vnd.ms-excel");
// wb.write(res.getOutputStream());
wb.write(fileOut);
fileOut.close();
thanks and regards,
SudheerHi ,
Modified your code .
public void generate(IPortalComponentRequest request) throws Exception {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();
HSSFRow row = sheet.createRow(3);
HSSFCell cell = row.createCell((short)0);
HSSFCellStyle cs1 = wb.createCellStyle();
HSSFCellStyle cs2 = wb.createCellStyle();
HSSFCellStyle cs3 = wb.createCellStyle();
HSSFDataFormat df = wb.createDataFormat();
HSSFFont f = wb.createFont();
HSSFFont f2 = wb.createFont();
f.setFontHeightInPoints((short) 12);
f2.setFontHeightInPoints((short) 10);
cs1.setFont(f);
cs1.setDataFormat(df.getFormat("#,##0.0"));
cs2.setFont(f2);
cell.setCellValue(1);
row.createCell((short)1).setCellValue(1.2);
row.createCell((short)2).setCellValue("This is a string");
row.createCell((short)3).setCellValue(true);
HttpServletResponse res = request.getServletResponse(true);
try {
res.setContentType("application/vnd.ms-excel");
wb.write(res.getOutputStream());
}catch(Exception e) {}
Check this blog for more
Create an excel file from JAVA using HSSF api -
Hi have an urgent issue.
When i send the output of report which contains japanese data through "send forecast as excel" then an excel sheet is saved on desktop in which im getting junk characters instead of japanes?
but when i save this list by using (spread sheet - cntrlshiftF7) then it is saving and also japanese characters are coming.
Could anyone help me out to get these characters when i send thru "forecast as excel"
Thanks in advance
ArunThanks , the problem is solved. here is what I did -
CALL METHOD OF
workbook
'SAVE'.
CALL METHOD OF
workbook
'CLOSE'
EXPORTING
#1 = 0
#2 = 0
#3 = 0.
FREE OBJECT workbook.
CALL METHOD OF
sheets
'APPCLOSE'.
CALL METHOD OF
sheets
'QUIT'.
CALL FUNCTION 'FLUSH' .
FREE OBJECT sheets.
FREE OBJECT application. -
How to get data to excel sheet from background
Hello Experts,
I have be assigned a task where i have to find out all the reports and the variants containing a ' / '. I have written the code where i am able to scan through the entire list and get a set of reports and the variantsin the internal table. NOW i have to run the code in the background and the entire set of reports and the variants in the internal table to the excel sheet . So how do I do this? I am able to get the data in the excel sheet from the foreground using the FM GUI_download. But this FM does not work in the background.
So what should be the ideal way to do this ?
Thanks
AdityaHi,
You can write the file into Application server.
OPEN DATASET dataset FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT it_itab INTO wa_itab.
TRANSFER wa_itab TO dataset.
ENDLOOP.
CLOSE DATASET dataset
use CG3Y transaction to download file from app server to presentation server.
Regards
Sree -
How to export to excel sheet from Oracle APEX 4.0?
Hello,
I'm relatively new to Oracle APEX. I'm in need of a solution to address the above question. I want to export a report's contents to an excel sheet from Oracle APEX(Priority).
The export should be customizable to add entries into the excel sheet as I need(Secondary). Can anybody help?Checkout this link:
http://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
Thank you,
Tony Miller
Ruckersville, VA -
Hi,
To achieve these are the steps that I had followed :
1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
2. Add Documnet Library link to Trusted Connection Proivder
3. Open Visual Studio as Run as Administrator
4.Create an SharePoint 2013 Empty Project.
5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
6.Service added successfully
7.Create a class file and add the Service Reference namespace
There is no such class as ExcelService to call.
Please let me know if somebody knows how to open the Excel file into C#(2012) either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
Requirement is :
Need to read the excel sheet from Document Library and transfer all data into DataTable.
Please help asap.Hi,
This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support -
Sending an Email by taking excel sheet from Application Server.
Hi.
I Searched in SDN related 'Sending an Email by taking excel sheet from Application Server'.
But i didnt get. I got sending mails from local pc.
Can some bdy provide me sample code how to send mail with an attachment. the attached file should get from Application Server
Regards,
RenuHi,
For writing data to app server from internal table:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/prog%252bon%252bopen%252bdataset%252binput
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/prog%252bon%252bopen%252bdataset%252boutput
Checkout this wiki for sending XL in mail attachment:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/multiple%252battachment%252bon%252be_mail
Thanks,
Krishna -
How can I download to one excel sheet from more than two table?
Hi.
as you know
<SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DATAPROVIDER_T1' >
this script can make download excel sheet which is same cotents of table or chart in web template.
but if template has more than two tables how can we get excel sheet from tables?
<SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER_1='DATAPROVIDER_T1' DATA_PROVIDER_2='DATAPROVIDER_T2'>
I hope this gonna work but result was fail same as I expected.
is there any way put two tables download one excel sheet?Welcome to SDN.
Post this in Business Explorer forum for quicker resposne.
SAP Business Explorer (SAP BEx)
Regards
Raja -
Modify excel sheet from BDN/GOS and add to sales order
Hello,
Iu2019ve import a excel-template in OAOR (BDN) and now i want to modify the excel-sheet with my own data.
After then I want to put it to a Sales Order (BUS2032).
The excel sheet must indicated in the attachment list of VA02 (GOS).
Which method I must use to copy a existing excel sheet from BDN?
How can i modify my excel sheet from BDS and add to a existing sales order?
Can I set the document write protected?
Can anyone help me or have any examplesu2026
Thanks in advance
Edited by: Thomas Druetschel on Dec 2, 2008 3:20 PMHello,
now i can get a template from BDN and modify the excel sheet. But i want to modify the excel spreadsheet in BACKGROUND ==> have anybody a idea?
And i need the correct method to save the modified document to BDS...
Thanks
i use the following code:
TYPE-POOLS: sbdst.
DATA go_control TYPE REF TO i_oi_container_control.
DATA go_docking_container TYPE REF TO cl_gui_docking_container.
DATA go_document_proxy TYPE REF TO i_oi_document_proxy.
DATA go_excel_iface TYPE REF TO i_oi_spreadsheet.
DATA go_error TYPE REF TO i_oi_error.
DATA gc_exceltype TYPE soi_document_type VALUE soi_doctype_excel_sheet.
DATA gv_retcode TYPE soi_ret_string.
DATA gv_sheetname TYPE soi_string.
DATA gv_inplace TYPE c.
DATA: gv_value TYPE string.
START-OF-SELECTION.
PERFORM open_excel_doc_from_bds
USING
'BUS2032'
'BO'
'0010163117'
PERFORM fill_cell
USING
'TEST123'
'1'
'2'.
==>> Now i want to SAVE the modified Excel Spreadshet to another Sales Order...
*& Form init_excel_proxy
text
-->UV_INPLACE text
FORM init_excel_proxy USING uv_inplace TYPE c.
DATA lv_repid TYPE sy-repid.
DATA lv_dynnr TYPE sy-dynnr.
DATA lv_str TYPE soi_string.
lv_repid = sy-repid.
lv_dynnr = sy-dynnr.
CALL METHOD c_oi_container_control_creator=>get_container_control
IMPORTING
control = go_control
error = go_error.
CREATE OBJECT go_docking_container
EXPORTING
repid = lv_repid
dynnr = lv_dynnr
side = cl_gui_docking_container=>dock_at_bottom
extension = 0.
I don´t want to modify the document in the front*
CALL METHOD go_control->init_control
EXPORTING
r3_application_name = ' '
inplace_enabled = uv_inplace
parent = go_docking_container
IMPORTING
error = go_error.
CALL METHOD go_control->get_document_proxy
EXPORTING
document_type = gc_exceltype
IMPORTING
document_proxy = go_document_proxy.
ENDFORM. " init_excel_iface
*& Form open_excel_doc_from_bds
text
-->UV_CLASSNAME text
-->UV_CLASSTYPE text
-->UV_OBJECTKEY text
-->UV_INPLACE text
FORM open_excel_doc_from_bds USING uv_classname TYPE sbdst_classname
uv_classtype TYPE sbdst_classtype
uv_objectkey TYPE sbdst_object_key
uv_inplace TYPE c.
DATA lt_doc_uris TYPE sbdst_uri.
DATA ls_doc_uri LIKE LINE OF lt_doc_uris.
DATA lt_doc_signature TYPE sbdst_signature.
DATA lv_doc_url TYPE bapiuri-uri.
DATA lv_repid TYPE sy-repid.
DATA lv_dynnr TYPE sy-dynnr.
IF go_document_proxy IS INITIAL.
PERFORM init_excel_proxy USING uv_inplace.
ENDIF.
CHECK NOT go_document_proxy IS INITIAL.
CALL METHOD cl_bds_document_set=>get_with_url
EXPORTING
classname = uv_classname
classtype = uv_classtype
object_key = uv_objectkey
CHANGING
uris = lt_doc_uris[]
signature = lt_doc_signature[]
EXCEPTIONS
nothing_found = 1
error_kpro = 2
internal_error = 3
parameter_error = 4
not_authorized = 5
not_allowed = 6.
IF sy-subrc NE 0 .
MESSAGE 'cl_bds_document_set=>get_with_url error' TYPE 'I'.
EXIT.
ENDIF.
READ TABLE lt_doc_uris INTO ls_doc_uri INDEX 1.
lv_doc_url = ls_doc_uri-uri.
CALL METHOD go_document_proxy->open_document
EXPORTING
document_url = lv_doc_url
open_inplace = uv_inplace
open_readonly = ''
IMPORTING
error = go_error.
IF NOT go_excel_iface IS INITIAL.
FREE go_excel_iface.
ENDIF.
CALL METHOD go_document_proxy->get_spreadsheet_interface
EXPORTING
no_flush = 'X'
IMPORTING
sheet_interface = go_excel_iface
error = go_error.
ENDFORM. "open_excel_doc_from_bds
*& Form fill_cell
text
-->UV_VALUE text
-->UV_COLUMN text
-->UV_ROW text
FORM fill_cell USING uv_value TYPE string
uv_column TYPE i
uv_row TYPE i.
CHECK NOT go_document_proxy IS INITIAL.
CHECK NOT go_excel_iface IS INITIAL.
DATA: lt_ranges TYPE soi_range_list,
lt_contents TYPE soi_generic_table,
ls_contents LIKE LINE OF lt_contents[],
lt_rangesdef TYPE soi_dimension_table,
ls_rangesdef LIKE LINE OF lt_rangesdef.
ls_rangesdef-row = uv_row.
ls_rangesdef-column = uv_column.
ls_rangesdef-rows = 1.
ls_rangesdef-columns = 1.
APPEND ls_rangesdef TO lt_rangesdef.
ls_contents-row = 1.
ls_contents-column = 1.
ls_contents-value = uv_value.
APPEND ls_contents TO lt_contents.
CALL METHOD go_excel_iface->set_ranges_data
EXPORTING
ranges = lt_ranges[]
contents = lt_contents[]
rangesdef = lt_rangesdef[]
no_flush = 'X'
IMPORTING
error = go_error.
ENDFORM. "fill_cell
*& Form get_cell
text
-->UV_COLUMN text
-->UV_ROW text
-->CV_VALUE text
FORM get_cell USING uv_column TYPE i
uv_row TYPE i
CHANGING cv_value.
DATA: lt_ranges TYPE soi_range_list,
lt_contents TYPE soi_generic_table,
ls_contents LIKE LINE OF lt_contents[],
lt_rangesdef TYPE soi_dimension_table,
ls_rangesdef LIKE LINE OF lt_rangesdef.
ls_rangesdef-row = uv_row.
ls_rangesdef-column = uv_column .
ls_rangesdef-rows = 1.
ls_rangesdef-columns = 1.
APPEND ls_rangesdef TO lt_rangesdef.
CALL METHOD go_excel_iface->get_ranges_data
EXPORTING
rangesdef = lt_rangesdef[]
IMPORTING
contents = lt_contents[]
error = go_error
CHANGING
ranges = lt_ranges[].
cv_value = space.
READ TABLE lt_contents INTO ls_contents INDEX 1.
IF sy-subrc = 0.
cv_value = ls_contents-value.
ENDIF.
ENDFORM. "get_cell
*& Form insert_table
text
-->COLUMN text
-->ROW text
-->CT_DATA text
-->ANY text
FORM insert_table USING column TYPE i
row TYPE i
CHANGING ct_data TYPE table any.
CHECK NOT go_document_proxy IS INITIAL.
CHECK NOT go_excel_iface IS INITIAL.
CALL METHOD go_excel_iface->insert_range_dim
EXPORTING
name = 'Table'
top = row
left = column
rows = 1
columns = 1
no_flush = 'X'
IMPORTING
error = go_error.
DATA: lt_fields_table TYPE soi_fields_table.
CALL FUNCTION 'DP_GET_FIELDS_FROM_TABLE'
TABLES
data = ct_data[]
fields = lt_fields_table.
go_excel_iface->insert_one_table(
EXPORTING
data_table = ct_data[]
fields_table = lt_fields_table[]
rangename = 'Table'
no_flush = 'X'
wholetable = 'X'
IMPORTING
error = go_error
ENDFORM. "insert_table= -
Opening Excel sheet from server
Hi I have one requirement to open Excel Sheet.
The Excel sheet is residing in a directory parallel to WEB-INF. I am using Jboss server in Linux. in UI whenever I click on link I have to open Excel sheet from the server. Before opening Excel sheet I have to fill with some data. i am using JSP/Servlets .
Can any one help me on this?
Guruthis piece of code is just open a xsl file with writing some data on the file
it may be helpful for u .i am giving only logic.
import java.util.*;
import java.io.* ;
import java.text.* ;
public class a{
// Main method
public static void main (String args[])
// Stream to write file
//File file;
FileWriter fout;
String TimeStamp;
try
// Open an output stream
Calendar currentdate= Calendar.getInstance();
int currmonth=currentdate.get(Calendar.MONTH)+1;
String strMonth="";
if(currmonth<10)
strMonth="0"+currmonth;
String wbname="Equifax"+strMonth+currentdate.get(Calendar.YEAR)+".xls";
System.out.println(wbname);
BufferedWriter outfile = new BufferedWriter(new FileWriter(wbname));
//file=new File(filename);
fout = new FileWriter (wbname);
// Print a line of text
TimeStamp = new java.util.Date().toString();
//String filename1=file.getName();
outfile.write(" Apply ");
// Close our output stream
outfile.close();
// Catches any error conditions
catch (IOException e)
System.err.println ("Unable to write to file");
System.exit(-1);
} -
Moving excel sheet from different files to excel template
Hi Everyone,
I need help from you guys.. I want to fetch excel sheet from different files (say for example from 3 excel files) and put in to one template file. If any one have idea regarding this please let me know. Thanks in advance
Thanks & Regards
saamyHii Puneet K & nyc,
Thanks a lot for ur links guys... am already done ...will upload the working code shortly...and am facing some other problem now...when I execute the program in LV 11.0 version its working fine, but when I try to run the same code in LV10.0 (32 bit machine) its showing this error
"Error -2146827284 occurred at Exception occured in Microsoft Office Excel: Excel cannot insert the sheets into the destination workbook, because it contains fewer rows and columns than the source workbook. To move or copy the data to the destination workbook, you can select the data, and then use the Copy and Paste commands to insert it into the sheets of another workbook.Help Path is C:\Program Files\Microsoft Office\Office12\1033\XLMAIN11.CHM and context 0 in copy_excel_worksheet.vi
This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.
Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-2146827284) or for its hexadecimal representation (0x800A03EC)."
If you guys know the solution please let me knoe...thanks in advance..
Thanks & Regards
saamy -
Hi Guys,
First of all thanks in advance any help much appriciated.
I am new in scripting and excel, i am looking for below solution as my job requires daily work of this kind and i came to know by automating this work lots of time can be saved.
Compare Server Names in Excel sheet from column1 with column 2 and exact matched server names should be saved in column 3 in same Excel sheet.
Looking solutions first using excel i.e.vlookup itself so that it will not require any approval in my job else using powersell ,vbscript.
Once again Thanks for you guys.
/Regards
Nitesh24inHi Edward,
Thanks once again
I have only changed excel file path and after that this is saved as below , i am not sure which three lines should be together in one line. Please advise.
$excel = New-Object -ComObject Excel.Application
$Workbook = $excel.Workbooks.Add("F:\NewDocsToReadNitesh26-May2013\Excel\test.xls")
$WorkSheet = $Workbook.Worksheets.Item(1)
$WorkSheet.Activate() | Out-Null
For ($i=1;$i -le $worksheet.UsedRange.Rows.Count;$i++) {
If ($worksheet.cells.item($i,1).value2 -eq $worksheet.cells.item($i,2).value2) {
$worksheet.cells.item($i,3).value2 = $worksheet.cells.item($i,1).value2
}$Workbook.Save()$excel.Quit()[System.Runtime.InteropServices.Marshal]::ReleaseComObject([System.__ComObject]$excel) | Out-Null
Thanks and Regards
Nitesh24in -
Downloading logo in excel sheet from application server
hi all
how can i download a logo in excel sheet from the application server(logo is in OAOR tcode) .you can also specify with OOPS concept.
rewards assured.
Reagrds
Swarnali Basuhi naresh
i think there is some miscommunication in case of my question,my requirement is to add a logo in excel sheet from application server,i mean when the user clicks to download the excel sheet the logo should immediately appear in the excel sheet,and it is not a fixed logo it can be anything which appears in applicaton server(on that program).
as far as excel sheet stanalone is concerned i know to do it and as well as to get the logo in the application server standalone ,but i cant download the logo in excel sheet from the application server.now does my question make sense ?
Reagrds
Swarnali -
Reading excel sheet from out side of the server though sql developer.
Hi ALL,
Is it possible to read the excel sheet from the out side of the oracle server.
If it possible please send me the sample code.Duplicate thread.
Reading excel sheet from local system though sql developer
Also a FAQ
SQL and PL/SQL FAQ
Maybe you are looking for
-
Firefox 3 and Quicktime Plug-in
Okay, so I have Quicktime 7.5.5 installed, and have firefox set to use that plugin. I can play quicktime movies from places such as gametrailers.com But I CAN'T play the movies on apples own website? I browse to a page such as the new iPod advert (ht
-
Get-Childitem with Get-FileHash Info
Hello, I have been able run the following script to get File names in a Recurse folders, although I'm looking to use Get-Filehast too, although I'm not sure or unable to tag this on the end of this script File-filehast info. could you advise. my cur
-
Still Can't get new iMac iMovie to open
after rebuilding iPhoto library and removing all video clips (avi and .mov) to a folder on the desktop I can get iMovie to open. Is this normal? I am so dissapointed. I guess I am going to have to use iMovie HD
-
Installing Oracle 10g release 10.1.0.3
Why not I can install Oracle Server in a Linux x86 64 Bits with Red Hat Enterprise v.4 ??? one requisite it's a Linux kernel 2.4 minimun... I copy this from installation archive log: root > cat installActions2005-10-28_01-33-11PM.log Using paramFile:
-
Hello, We have a table that contains the following sample data: Entity Dept Branch Account Month Year Amount A1 001 01 12345 2 2010 3000.00 A1 002 13 12345 5 2010 0 R4 006 23 12345 4 2010 0 Y6 213 34 22222 3 2009 342.56 S2 675 25 22222 7 2010 0 W9 23