HTML formate excel files
Hi,
I just recognized that the excel files which I can download from my OBI/Answers reports or which I used to send to customers are HTML formated excel files. I also found a remark in the Oracle OBI documentation.
Now my problem ...those files are much bigger then the ordinary excel files. Opening those files and saving them again as pure excel decreases the size by the factor 10x.
Unluckily some of those files a bigger then 10MB which is the size limit of mails of our mail server. My question is there a way to create normal, non-html formatted excel files (especially for sending them)?
Thanks.
The link is very helpful but unluckily it is no solution (maybe there is no solution). If the excel file is in MHTML format it is much too big ...on the other hand it needs to be Excel 2003. So finally the question is still whether it is possible to get am Excel 2003 file without MHTML?
Similar Messages
-
Format excel file when it is downloaded
How to format excel file when it downloaded from SAP table
Hi,
In my opinion this would not be straight forward . Actully there are two possibilities :
1. Create a dynamic itab with the structure as you desire in your requirement. But is it possible to have a itab where each row has a different structure. ? experts pls comment on this. ( extract & field group concepts are used to acheive the different structures for each line ).
2. The more possible way i feel is to use the OLE excel concepts. Here we can add data to the excel sheet as wanted by you. Pls check for a beginners article by Rehan Zaidi ( SAP tips ).
In this case you can keep on adding values to the excel ( may be in a loop over your data table ) . For ex : you can add the title Annual Price Book for Program - B4, then the customer & date data & finally the material data. This needs to be repeated again for the next Sales order.
Regards,
Sharat. -
How to get Formatted Excel file when downloading spool request of a r paint
I have scheduled a Report painter program in background & spool is generated .
When I download the output in the Excel file its not in the proper format . We need to format the file file by adding deleting blank Line in the report .
Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
Thankskiro123 wrote:
I have scheduled a Report painter program in background & spool is generated .
>
> When I download the output in the Excel file its not in the proper format . We need to format the file file by adding deleting blank Line in the report .
>
> Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
>
>
> Thanks
Yes the report painter report especially in the hierarchial format will not make much sense when you download to excel. Until now I also have not seen any solution to this. -
How to save html as Excel file im java
Hi to all
How can i save html file as Excel file in Java
If any solutions plz help MeThanks for ur reply
Source URL is::http://www.sttpc.com/reseller/price.htm
Target is to save table data into Excel Sheet.
Upto saving that file as Excel file its working (using I/O).
When iam trying to read excel sheet data then iam getting OLE Exception.
plz suggest me other Alternate solutions to overcome this problem.
I tried htmlparser from sourceforge.net i got partial ouput.But i want dynamic solution.
Thanks. -
User specified formatted Excel File
Hello all,
this forum has been extremely helpful to me earlier...i'm hoping for
the same this time around.
here is my query:
I need to write information to an Excel file in a formatted fashion,
as usual i'm using open book, open sheet, set value with range... i
would like to format the data that i read from the PLC in to the EXCEL
file in a specified manner is there a way to do this...
date on the first row,
columns seperated by colons ":" and then column names and the
respective data below them...
thanks,
cheers,
-UTry using the format into string function in the string subpalette. This will allow you to enter all of your inputs and build a string to write to file. You can use string constant to create the ":" and you can use a variety of tabs, end of lines, etc. to build the string the way you want. If you have LV 7 you can use the Build Text express vi. This will allow you to format easier with a nice property page. The drawback with using the build text is a limit of 8 inputs. The format into string will allow more than 8. Hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor -
Can't place formatted Excel file into ID?
Can't place formatted Excel 2010 data base into InDesign CS5 on Mac? Won't place into newest version of ID either. Will place if I unmerge cells first, but I need thousands of the cells to be merged.
I thought you might want to do that. No, once a PDF you can't edit to your heart's content.
So, as to the matter of thousands of cells? You may have to look that one up but there is a limit on what you can do with an Excel file and InDesign; there are only so many cells, columns and rows that can be imported and let alone worked on inside InDesign.
And you want to merge the cells in InDesign? What ever for? If thousands of cells then edit in Excel to your heart's content and output a PDF. InDesign is not designed as a spreadsheet and not the tool you need and will really bog down with thousands of cells to merge. Just do it in Excel. -
Remove Email Addresses From a Formatted Excel File
I have an excel file that has some formatting in it that I
would like to preserve (some cells have background color, etc). I'd
like to remove a list of email addresses from this file. My first
thought is to use cffile with action read, use the following in a
cfloop: replace(emailAddressToDelete,
excelFileVarCreatedFromCffileRead) and then save it back to excel
format with cffile using action write. I tried this and the Excel
file would not open. The error was:
test.xls cannot be accessed. The file may be read-only, or
you may be trying to access a read-only location. Or, the server
the document is stored on may not be responding.
I'm guessing something went wrong in the process of reading
and writing the files contents and it's not as simple as I want to
make it. Anyone have something to tell me that might help me remove
email addresses from a formatted Excel spreadsheet?jqcf wrote:
>
> I'm guessing something went wrong in the process of
reading and writing the
> files contents and it's not as simple as I want to make
it. Anyone have
> something to tell me that might help me remove email
addresses from a formatted
> Excel spreadsheet?
>
Yup, .xls is a proprietary encrypted file format and
<cffile.... is not
going to be able to successfully read and modify it's
content. You can
copy it or move it, but not modify it with <cffile...>
If the file format was a plain text such as .txt or .csv you
could do
what you are thinking about, but then you would probably not
have the
proprietary excel formating in the file.
I've heard about the POI library that allows some native
Excel access
and such, but I am not knowledgeable in its ins and outs. -
How to upload excel file in Webdynpro application using ABAP
Hi Experts,
Am developing a webdynpro application in which it will take an excel file as input and display the contents in the form of a table in output. I am able to upload tab delimited text file and populate the table using the below code but not able to do the same with .xls file. Pls let me know if I need to use a different function module for upload excel file.
get single attribute
wd_context->get_attribute(
EXPORTING
name = `DATASOURCE`
IMPORTING
value = l_xstring ).
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = l_xstring
IMPORTING
out_string = l_string.
SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE i_data.
Bind With table Element.
LOOP AT i_data INTO l_string.
SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
READ TABLE fields INTO lv_field INDEX 1.
fs_table-name = lv_field.
READ TABLE fields INTO lv_field INDEX 2.
fs_table-age = lv_field.
APPEND fs_table TO t_table1.
ENDLOOP.
lo_nd_data = wd_context->get_child_node( 'DATA_TAB' ).
lo_nd_data->bind_table( T_TABLE1 ).
Thanks,
SubathraDear Exports
Can anyone guide me how to uplode the .xlsx or ..xls formatted excel file using abap webdynpro without converting it to .txt file. Because my client requirement is only to upload the excel file. because to convert the .xlsx flie to .txt file it will be time taking and cost expanssive. Another requirement is suppose today i have create a application for uploading a file which has 8 columns and 10 rows. suppose tomorrow the client will make some changes in that flat file means the client will add 2 extra columns and 10 more columns in that fil. and will upload that file. Then the new file will be display on the browser or old file. but my requirement is to display the new file in browser.
Can anyone kindly help to solve my problem. I am completely fresher in this field and I need to do it as soon as possible. Please help to solve the problem.
Regards
Rashmita -
Read from Excel file in SP2013
Hi,
I have a requirement to read data from a formatted Excel file which is located in a document library, and put the contents in a List via code. This functionality should check - if he record exists update the list item, if not create a new list
item.
I have installed the PIA assemblies and have referenced the excel iterop services dll from
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Visual Studio Tools for Office\PIA\Office15\Microsoft.Office.Interop.Excel.dll
I am trying to use the excel interop services but getting the below error :
public void readexcelfromExcelOp()
using (ClientContext clientContext = new ClientContext("http://development002/"))
List docList = clientContext.Web.Lists.GetByTitle("MDRDocuments");
lblstatus.Text = " got the document library ";
Excel.Application xlApp = new Excel.Application();
Excel.Workbook xlWorkbook = xlApp.Workbooks.Open(@"D:/C.xlsx");
Excel._Worksheet xlWorksheet = xlWorkbook.Sheets[1];
Excel.Range xlRange = xlWorksheet.UsedRange;
int rowCount = xlRange.Rows.Count;
int colCount = xlRange.Columns.Count;
for (int i = 1; i <= rowCount; i++)
for (int j = 1; j <= colCount; j++)
lblExcel.Text = xlRange.Cells[i, j].Value2.ToString();
Error 1 at the above highlighted section of the code - One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?
Pallavi Sharma http://letsgetalittletechnical.blogspot.com/You might want to look at Excel Services and use the .../_vti_bin/ExcelRest.aspx
http://msdn.microsoft.com/en-us/library/ee556820.ASPX
This will allow an ajax call in the browser or web request to return Xml. To ease access to content within Excel file setup Named Ranges. http://development002/_vti_bin/ExcelRest.aspx/MDRDocuments/c.xlsx/model/Ranges('MyNamedRange')
Hope this helps.
If looking to access Excel server-side use the OpenXML API, but avoid
accessing the physical hard drive; put the Excel document in SharePoint. -
Any way to export table to excel file with leading 0s?
I have to export about 50 excel files from different tables. Some tables contain leading 0s in the columns. If I use bcp to export to xls file, the leading 0s will be missing. If bcp to csv or txt file, there will be no issue at all. But I have to export to xls file in order to let client update that xls file and reload to tables again.
Is there any other ways to do this task?
Thanks in advance.Ok, I played with it and fixed it on mine to work.
Here is what you do. Create a blank Excel file in Excel with a single header row with your column names in it, and then set the datatypes for each column in Excel to match your export type. For the below, create an Excel file and in column A1, put "Name" and change the column to Type Text. Then in B1 type Date and set it to type Date, then save the file as c:\Test.xls. Then close the file in Excel.
In SSMS execute the following:
Code Snippet
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\test.xls;HDR=YES',
'SELECT Name, Date FROM [Sheet1$]')
SELECT [Name], GETDATE() FROM msdb.dbo.sysjobs
GO
It worked perfectly in my environment. Don't bother with BCP, just create a formated Excel File with a header row with your output column names and then save it. -
FM to mail a excel file generated by XML
Hi All,
I have a requirement to generate fancy excel file as attachment in mail.
Please help with some FM to send mail with excel as attachment,
I have used a code like the sample code given below.
*&----
**& Report ZTEST_NP_EXCEL_XML
**&
**& Download the formatted excel file using XML
*&----
report Z_IXML.
TABLES USR02.
TYPES XMLLINE(1024) TYPE C.
DATA IT_XML TYPE XMLLINE OCCURS 0.
DATA WA_XML TYPE XMLLINE.
DATA FNAME(60) TYPE C VALUE '/ft/D02/001/test.xls'.
\ Build-up of xml in internal table
\\* Opening tags
APPEND '<?xml version="1.0"?>' TO IT_XML.
APPEND '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"'
TO IT_XML.
APPEND 'xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">'
TO IT_XML.
APPEND ' <Worksheet ss:Name="Tabelle1">' TO IT_XML.
APPEND ' <Table>' TO IT_XML.
\\* The actual data from table USR02
SELECT * FROM USR02.
APPEND ' <Row>' TO IT_XML.
CONCATENATE ' <Cell><Data ss:Type="String">'
USR02-BNAME '</Data></Cell>' INTO WA_XML.
APPEND WA_XML TO IT_XML.
CONCATENATE ' <Cell><Data ss:Type="String">'
USR02-TRDAT '</Data></Cell>' INTO WA_XML.
APPEND WA_XML TO IT_XML.
APPEND ' </Row>' TO IT_XML.
ENDSELECT.
\*Closing tags
APPEND ' </Table>' TO IT_XML.
APPEND ' </Worksheet>' TO IT_XML.
APPEND '</Workbook>' TO IT_XML.
DATA: window_title TYPE string,
fullpath TYPE string,
path TYPE string,
user_action TYPE i,
default_extension TYPE string,
default_file_name TYPE string,
file_filter TYPE string,
filename TYPE string,
initialpath TYPE string.
File selection
MOVE '.XLS' TO default_extension.
MOVE 'XLS files (.XLS)|.XLS' TO file_filter.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
default_extension = default_extension
default_file_name = default_file_name
file_filter = file_filter
initial_directory = initialpath
CHANGING
filename = filename
path = path
fullpath = fullpath
user_action = user_action
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = fullpath
filetype = 'ASC'
TABLES
data_tab = it_xml
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Please help
I am giving a sample code howHi Supratik,
Please refer to these two links:
Send email with 1 excel file and multiple sheet
How to Convert file to excel and send it via email
Hope this will resolve your issue. -
To Send HTML Format and excel file attachment in same mail
Dear All,
Have requerment ,to send a mail options HTML table format and same data in excel file attachement.have capable to do the html format using methods BCS .but how to send excel format attachment in same mail.
Please guide me how to do it.
Regards ,
Santhu
Edited by: santosh jajur on Apr 9, 2010 1:54 PMSanthosh,
please check the code:
report bcs_example_7.
This report provides an example for sending an Excel
attachment in Unicode Systems
constants:
gc_tab type c value cl_bcs_convert=>gc_tab,
gc_crlf type c value cl_bcs_convert=>gc_crlf.
parameters:
mailto type ad_smtpadr
default 'ur mail id'. "#EC *
data send_request type ref to cl_bcs.
data document type ref to cl_document_bcs.
data recipient type ref to if_recipient_bcs.
data bcs_exception type ref to cx_bcs.
data main_text type bcsy_text.
data binary_content type solix_tab.
data size type so_obj_len.
data sent_to_all type os_boolean.
start-of-selection.
perform create_content.
perform send.
form send.
try.
send_request = cl_bcs=>create_persistent( ).
create document object from internal table with text
append 'Hello world!' to main_text. "#EC NOTEXT
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = main_text
i_subject = 'Test Created By BCS_EXAMPLE_7' ). "#EC NOTEXT
add the spread sheet as attachment to document object
document->add_attachment(
i_attachment_type = 'xls' "#EC NOTEXT
i_attachment_subject = 'ExampleSpreadSheet' "#EC NOTEXT
i_attachment_size = size
i_att_content_hex = binary_content ).
add document object to send request
send_request->set_document( document ).
--------- add recipient (e-mail address) -----------------------
create recipient object
recipient = cl_cam_address_bcs=>create_internet_address( mailto ).
add recipient object to send request
send_request->add_recipient( recipient ).
---------- send document ---------------------------------------
sent_to_all = send_request->send( i_with_error_screen = 'X' ).
commit work.
if sent_to_all is initial.
message i500(sbcoms) with mailto.
else.
message s022(so).
endif.
endtry.
endform. "send
form create_content.
data lv_string type string.
data ls_t100 type t100.
columns are separated by TAB and each line ends with CRLF
concatenate 'This Is Just Example Text!' "#EC NOTEXT
gc_crlf gc_crlf
into lv_string.
header line
concatenate lv_string
'MSGID' gc_tab
'MSGNO' gc_tab
'Language' gc_tab "#EC NOTEXT
'Text' gc_crlf "#EC NOTEXT
into lv_string.
data lines
select * from t100 into ls_t100
where arbgb = 'SO' and msgnr = '182'.
concatenate lv_string
ls_t100-arbgb gc_tab
ls_t100-msgnr gc_tab
ls_t100-sprsl gc_tab
ls_t100-text gc_crlf
into lv_string.
endselect.
select * from t100 into ls_t100
where arbgb = 'SO' and msgnr = '316'.
concatenate lv_string
ls_t100-arbgb gc_tab
ls_t100-msgnr gc_tab
ls_t100-sprsl gc_tab
ls_t100-text gc_crlf
into lv_string.
endselect.
try.
cl_bcs_convert=>string_to_solix(
exporting
iv_string = lv_string
iv_codepage = '4103' "suitable for MS Excel, leave empty
iv_add_bom = 'X' "for other doc types
importing
et_solix = binary_content
ev_size = size ).
catch cx_bcs.
message e445(so).
endtry.
endform. "create_content
Thanks. -
Weblogic call a excel-file from URL doesn't open MSExcel but flat html
Weblogic call a excel-file from URL doesn't open MSExcel but flat html
Hi,
WLS 10.3.5
Forms 11.1.1.4
I do migrate from AS10g to WLS 10.3.5 / Forms 11
I get differences between FORMS 10 g / AS and FORMS 11 / WLS
when call an excel-file with web.showdocument
in 10g AS10g
the call
web.showdocumen('http://MyAS10_Server/myFormsMapping/myExcelfile.xls, _blank);
opens a Windows-Box
to decide
open with ( MSExcel )
or
download and save as File
in WLS 10.3.5 / FORMS 11.1.1.4
the call with webcache Port 8090 as well as Port OHS 8888
web.showdocumen('http://MyWLS_Server:8090/myFormsMapping/myExcelfile.xls, _blank);
opens promptly the excel-File into the Browser as html-Format
How to get the same way under WLS as before in AS 10g,
config OHS ?
regards
get answer here :
Weblogic: when call a excelfile from URL doesn't open MSExcel but flat html
Edited by: astramare on Sep 12, 2011 11:59 AMWeblogic: when call a excelfile from URL doesn't open MSExcel but flat html
-
Output report data to excel file format or csv format
Is there any way to save softcopy of report output to excel file format or csv format.
Hi,
Regarding csv file format, i have no issues. The file is generating without any issues in using oracle reports without using any PL/SQL code.
My requirement is to design oracle reports to generate excel (.xls) file with multiple worksheets. Each sheets are having many data and graphs(chart).
Using oracle reports alone, how to achieve this.
In oracle reports 10g 1.2.0 version, I tried by creating .rdf file but, it is generating single worksheet only.
In oracle reports 10g 1.2.0 ver, I tried by creating .jsp file. For this first i am creating excel template about how my ouput column headings all that going to be with one sample hard coded data and save the excel file as web page.
Eg employee.html.
Next open the html file in oracle reports builder and double click the websource now, you will see the jsp tags, html and xml tags. Now include the contentType="application/vnd.ms-excel " and charset also.
Next, include the <rw:foreach id="G_EMPNO_1" src="G_EMPNO">
here insert the fieldl for each column by removing the hard coded values.
close the tag
</rw:foreach>
Save the file as .jsp and deploy it in oc4 enabled folder (say, devsuite_home/reports/j2ee/reports_ids/web
Start the oc4J server
Run it in the browser http://server:port/reports/emp.jsp?useride=uid/pwd@db
It is invoking the Microsoft excel with 3 sheets default and my emp table output in the first page.
We can save this output file as .xls file by clicking file -> save as.
1) The question is, it is working fine with Microsoft excel 97-2003 version. But for excel 2007, i am not able to create single html file like how 2003 save web page option.
2) I found this in oracle getting started demo
http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/index.html
Which is more useful. This is what i am looking for.
I done that in excel 2003 as per demo. But excel 2007 with reports 10g issues.
Is there any demo for 10g with excel 2007
3) For most of excel issues working fine with excel 2003 and 10g. But excel 2007 with 10g reports are issues.
I want the excel output from oracle reports with multiple worksheet similar to the above demo.
Thank you. -
Excel files are saved as HTML files
Hi All,
I am saving the output files into a shared location in excel or csv format. However when i ask the users/business to have a look into it then they say that the files are opening as html web page and not able to load properly.
I checked it myself and found it true, all the xls and csv files are saved with .xls and .csv format only but when i try to open it and do as 'save as' then it by default tries to save it as a webpage. Is there any way i can correct this so the file is actually saved as xls only.
Please suggest
Thanks
RonnyHi Gareth,
I am using BI Publiser to ftp my report to the shared location. This is what it involves
[1] build the report in BIP
[2] while scheduling the report in BIP use sftp option to save the output file to the shared location
this is simple process to export the files to the desired location. Now while doing that ...i choose the output format ( template format) as excel and give the extension of the file as .xls.
The files does get saved as xls file but then when i try to save that agian to another location by opening it than it, by default , tries to save it as web page ....similarly when i ask business to have a look at the output files and when they open it than it opens as a web page .....wheareas it should be an excel file ..
Please revert if you require more elaborate explanation
Thanks
Ronny
Maybe you are looking for
-
Busca direta pela barra de endereços vai pra um site Russo ao invés do Google
Quando eu faço uma busca direto na barra de endereços, ao inés do resultado ser dado pelo Google, ele vem de um site russo, http://www.gigabase.ru/search?clid=1&q=teste, como eu altero as opções do Firefox para que o sistema de busca padrão pela barr
-
Can I get iMessages for two Apple IDs on my phone?
I have a work Apple ID and a personal Apple ID. I don't take my work iPad home, but co-workers need to send me messages after I've left for the day. Can I set up my work Apple ID on my iPhone? When I try to add it, it says it's already in use.
-
Acrobat 9 - Hyperlinks don't work after optimizing.
Acrobat 9.5 on Mac: hyperlinks go away after Optimizing. I use Quark 9, and after exporting to make the PDF, I have a large file size. When I open the PDF in Acrobat, all my hyperlinks created in Quark work. Then I use Optimizer to reduce the file
-
Avoid Deletion of Production order Components.
Dear All, Is there any arrangement to nbot to authorize the person to delete the component present in the Production Order. If not than can we get the consolidated report for the details whodeleted the Material. Regards, Mandar.
-
Flatten image makes areas dull in final output.
Hi, I've been trying to figure this out for the past day. I have a multi-layered PSB file that I've used blending modes, adjustment layers, etc. in and I'm trying to flatten a copy in order to run a custom masking action on. I've tried Save As: tif