How to get an effective EXCEL Spreadsheet as output for Oracle report 10g
Hi All,
I am a newbie in Oracle reporting. I am using 10g. I have an oracle report whose output format is PDF from the user interface. User asked for Spreadsheet output. I changed the JAVA CODE "desformat" = Spreadsheet and got the report in Excel. But this report is not as expected as it has many blank cells, misplacements etc and looks really ugly. so Is there anyway to get an excellent spreadsheet as output.
If anybody needs any more information on this, please let me know.
Thanks in advance.
Thank you so much Marwim. Your suggestion is very helpful. But I have some other Oracle reports which have only one .rdf file giving output in both pdf and Excel. This doubt might be silly. Almost same features were existing for the rdf what I am working now. For the remaining reports, it was given that DESFORMAT=SPREADSHEET , what this report lacks. I googled and found these links http://docs.oracle.com/html/B13895_01/orbr_paptoexcel.htm &
http://docs.oracle.com/html/B13895_01/orbr_paptoexcel.htm#CIHFDJAJ . But they are not intended for excel output. they generate only web layout in spreadsheet form. Could you please suggest any other ways to achieve this.
Thank you in advacne.
Edited by: user07960 on Jan 10, 2013 10:47 AM
Similar Messages
-
How to get total,maximum,mimumum no. of cases for this report
Description: Reason For Contact For Customer - This report will provide the total number of cases created for a particular Reason For Contact for a particular Customer with a valid Business Code. This report will also provide the Maximum, Minimum and Average number of cases created for a particular Reason For Contact for that particular type of Customer. This report will take From Date, To Date, Agent Group and Business Code as inputs and generates the report on the screen. All the input criteria will be mandatory.
See the attachment for the Report.
NOTE :1) FOR TOTAL,WE HAVE COUNT NUMBER OF CASES CREATED for a particular Reason For Contact for a particular Customer with a valid Business Code
2) FOR Maximum, Minimum and Average CONSIDER number of cases created for a particular Reason For Contact for that particular type of Customer.
For this report,I am using 5 tables. In the table ScaseParty i have C_Bus_Code,C_cust_type coulumns are there.
I am taking Input Criteria For Business code(ie c_bus_code).suppose business code is 'F0106',I have to get how many cases(means records) are there for a particular Reason For Contact for that Business Code.I AM GETTING THE TOTAL BUT
for getting maximum,minimum,average , i have to check the C_cust_type For that Business code ,after that I have to take all the business codes for that C_Cust_Type and with in the business codes ,i have to take the maximum number of cases which business code have for that particular Reason for contact For that particular customer type.
Eg: Reason for contact Businesscode customer type
Delivery Timing 0306 1
Delivery Timing 0306 1
Delivery Timing 0310 1
Delivery Timing 0310 1
Delivery Timing 0310 1
Delivery Timing 0310 1
In this way i want the result
Maximum =4 since, for reason for contact(delivery timing) for that customer type(customer type =1),the maximum no. of cases are 4 bcz, business code = 0310 comes 4 times.
Minimum =2 bcz, business code = 0306 comes 2 times.
The Problems i am facing
1) Since i have taken the input criteria Business code = 'f0106' ,the data filters in the where condition and the getting the number of cases exist for that business code(f0106) for that Contact of Reason data only.But i have to take all the business code exists for that Particular type of customer for that Particular reason for contact for getting the max,min,avg.
I can't handle max,min,avg in one report since it checks total cases for that Business code only.
SO,I THINK I HAVE TO INVOKE A SUBREPORT PASSING THE C_CUST_TYPE,iSN'T IT????
2) iF I TAKE THESE THINGS IN SUB REPORT,HOW CAN I find out the maximum number of case with in the business codes for reason for contact for that particular customer type.
CONSIDER THE ABOVE EXAMPLES, I AM GETTING 3 CASES FOR CODE = 0306 N 2 RECORDS FOR CODE= 0310 ,hOW CAN I GET mAXIMUM cASES ie 3 BY COMPARING THESE TWO CODES FOR THE DELIVERY TIMING . IS THERE ANY FUNCTION??????
In which way i have to handle this report.
Regards,
Vijay
mail : [email protected]Hi Vijay,
The most efficient way to acheive what you want will be to create a stored procedure or command object in which you have a subquery that calculate your maximum, minimum and average values.
If you are looking at a solution within Crystal Reports without having to write a SQL Query, then as you said, you can use a subreport that will returns the cases created for a particular Reason For Contact for that particular type of Customer.
( You will need to link the subreport to filter the data down )
Then you can calculate the minimum values in the subreport by using the Minimum function and manually counting the values in a variable, the formula will look like:
WhilePrintingRecords;
Shared NumberVar MyMinimum;
If Minimum({Business Code}) = {Business Code} Then
MyMinimum := MyMinimum + 1;
Insert the formula in the details section of the subreport.
This will count the number of time the minimum Business Code appears in the subreport.
You can create a similar formula for the maximum values by using the Maximum function.
As for the average, you can create a summary that counts the number of of Business Code, divided by the distinct count of Business Code, so it will give you the average. The formula will look like:
WhilePrintingRecords;
Shared NumberVar MyAverage;
MyAverage :=
( If DistinctCount({Business Code}) <> 0 Then
Count({Business Code}) / DistinctCount({Business Code}))
Then you can display the above shared variables on your main report.
Hope this help!
Regards,
Patrick -
How do I get a Microsoft Excel spreadsheet in the cloud so that I can view it on my iPad?
How do I get a Microsoft Excel spreadsheet in the cloud so I can view it on my iPad?
It would probably be easier to just mail it to yourself.
-
The following fills a DataTable with the contents of an Excel spreadsheet.
oledbCmd.CommandText = "SELECT * FROM [" + stSheetName + "$]";
DataTable dtDataTable = new DataTable();
using (OleDbDataAdapter oledbAdapter = new OleDbDataAdapter(oledbCmd))
oledbAdapter.Fill(dtDataTable);
How do I fill an Excel spreadsheet with the contents of a DataTable?
bhs67You can try this Excel library, it can help u to
export datatable to excel to Database.
After add the reference to your project ,add the following code:
private void button1_Click(object sender, EventArgs e)
//connect database
OleDbConnection connection = new OleDbConnection();
connection.ConnectionString @"Provider=""Microsoft.Jet.OLEDB.4.0"";Data Source=""demo.mdb"";User Id=;Password="
OleDbCommand command = new OleDbCommand();
command.CommandText = "select * from parts";
DataSet dataSet = new System.Data.DataSet();
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(command.CommandText,connection);
dataAdapter.Fill(dataSet);
DataTable t = dataSet.Tables[0];
//export datatable to excel
Workbook book = new Workbook();
Worksheet sheet = book.Worksheets[0];
sheet.InsertDataTable(t, true, 1, 1);
book.SaveToFile("insertTableToExcel.xls");
System.Diagnostics.Process.Start("insertTableToExcel.xls");
http://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Data-Export-/Import-Export-Datatable-to-Excel-from-Database.html -
How do I download a excel spreadsheet from my iPad back to my Mac Pro laptop
how do I download an excel spreadsheet from my iPad back to Mac Pro. the tech at the store showed my how to upload but not down load.
It kind of depends on how it is setup to sync. You can try to reverse his steps.
If you have icloud and use numbers - it will be done by icloud and you don't need to do anything
If he used file sharing in itunes, you need to drag that document backwards.
You can also email it.
And perhaps there are other ways as well. -
Somebody Knows how to use Roambi with Excel spreadsheet? I leed the process. Thanks
Somebody Knows how to use Roambi with Excel spreadsheet? I leed the process for my IPAd
I don't even know what it is, but have you explored the support available from the developer? http://www.roambi.com/iphone-videos.html
-
How to get a wallet (like in Nokia 6600) for Nokia...
Dear All,
Can you please tell me how to get a wallet (like in Nokia 6600) for my Nokia E63?
Narottam Das
Kolkata, IndiaUsing the data from your Excel spreadsheet, this is what I get from the curve-fit functions:
Seems like a pretty-good fit to me. I'm not sure what you're trying to do with the polynomial evaluation stuff, though.
Message Edited by smercurio_fc on 07-30-2008 09:21 AM
Attachments:
Example_VI.png 17 KB -
How to Get checkbox value when List value changed in classic report
hi ,
i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
take value of checkbox item and show it in message .
SQL for report
SELECT
'<INPUT TYPE="checkbox" NAME="f01" VALUE="'
||SEQ
||'">' SEQ,
ID,
DEPT_NO,
EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
i create JavaScript on the page
function test(pThis) {
var f01_value = $('select[name="f01"]').value;
alert('#SEQ : '+ f01_value);
</script>
I call this javascript function when list change but the value undefined..
My Question :
How can get this value Or any value of item in reports
regards
AhmedHi Ahmed,
>
i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
take value of checkbox item and show it in message .
SQL for report
SELECT
'<INPUT TYPE="checkbox" NAME="f01" VALUE="'
||SEQ
||'">' SEQ,
ID,
DEPT_NO,
EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
>
You should not create checkboxes like this. Either use the APEX_ITEM.CHECKBOX2 API or change the Column Type to Simple Checkbox.
>
now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
i create JavaScript on the page
function test(pThis) {
var f01_value = $('select[name="f01"]').value;
alert('#SEQ : '+ f01_value);
</script>
>
name="f01" returns an array, what you need is single element value.
Try
<script type="text/javascript>
function test(pThis) {
var f01_value = $v(pThis);
alert('#SEQ : '+ f01_value);
</script>
{code}
{quote}
I call this javascript function when list change but the value undefined..
My Question :
How can get this value Or any value of item in reports
{quote}
Depends in how you are invoking/triggering the change event. Are you using DA or have you written an "onchange" event on the element?
Cheers, -
How to get the number of decimal places configured for a site column
Hi,
I have a column 'SampleNumCol' of type Number, the number of decimal places to be displayed is configured as 2.
The column conatins a value, but when retrieved programatically is displayed as 5.00000000 instead of 5.00.
I am retrieving this column using listitem.Properties[field.InternalName].
I need to trim the decimals based on number of decimal places configured for the site column.
How to get the number of decimal places configured for a site column?
Thanks in advance,
dhijitGet the field as SPFieldNumber and then check DisplayFormat which returns
SPNumberFormatTypes
SPFieldNumber numberField = list.Fields.GetFieldByInternalName("YourNumberFieldName") as SPFieldNumber;
SPNumberFormatTypes numFormatType = numberField.DisplayFormat; -
Does anyone know how to get the vendor ID and product ID for NI-Visa? TIA
Does anyone know how to get the vendor ID and product ID for NI-Visa? TIA
This question has already been addressed in this thread:
Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa?
John M
National Instruments -
Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA
Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA
Hello,
Exactly which USB device are you referring to? Is the device a NI product?
The Product ID for National Instruments DAQPad-6020E is 0x12C0. The USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093) (that is decimal 4243).
Also, here's a document on our website that will help you in configuring NI-VISA to control your USB device:
http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
Swapnil P.
National Instruments Engineer -
How can I get (using API) the current sort column for some report
hello,
How can I get (using API) the current sort column for some report ? For example something like "fsp_sort_1_desc" - if the user sorts by the first column ?
I cannot use the :REQUEST for this, sometimes the current sort column is not in the :REQUEST, but it is still active.
I thought it was posssible by using
APEX_UTIL.GET_PREFERENCE (
p_preference IN VARCHAR2 DEFAULT NULL,
p_user IN VARCHAR2 DEFAULT V('USER'))
RETURN VARCHAR2;
function, but I don't really know which preference should I pass as parameter.
looking in WWV_FLOW_PREFERENCES$, i saw preferences_names like FSP4000_P527_R6281510839654570_SORT , I'm not sure how this name is formed.
I'm using generic columns for that complex report (which has a flexible number of columns shown), and the idea is that sometimes I have to overwrite that sort column, in case the user chose the version of the report with fewer columns than the previous one.
Can I get (using API) a list of all preferences set for some user ?
Thank you,seems that it is FSP<app_number>P<pagenumber>R<regionnumber>_SORT.
is there anyplace where I can get these kind of things documented ?
Thank you. -
How to import data from excel or csv files to Oracle table
hello everybody,
I am new here and new in Oracle. I would like to know the steps how to import data from excel or csv files to Oracle table.
Let say I already have table inside the Oracle. Then my user give me the sets of data inside the Excel Worksheet.
So, how can I import the excel data into Oracle table.
Thank you in advance.
cheers,
shimaEven easier. Download JDeveloper 11G from this site.
Set up the database connection, right click on the table, select Import->Excel and specify your file to load it. On the import pop-up, you must view and update each tab indicating Columns, Data Types, and DML.
Columns -- move the selected columns that you want to load to the box on the right
Data Types -- select column name from second column to which the data for each column of the import file should load
DML -- click this tab to generate the INSERT SQL
Once done click 'Insert' -
How to get the input details on the output screen in T code KCR0
Hi All,
How to get the input details on the output screen in T code KCR0, the issue is that we need to get the input details like Company code and payment date on the output screen while executing the report painter via t code KCR0.
I tried to chane the settings via t code KCR6 but still didn't get the required output details.
Regards,
AjayThis is the asset accounting forum. You should post your question in the proper forum.
-
How to get a list of most fragmented tables in Oracle?
Is there an SQL on how to get a list of most fragmented tables in Oracle DBMS?
Thanks! I would just like to ask you, what do the negative values mean in wasted space?
Is there an easy way to improve defragmentation state?
TABLE NAME SIZE ACTUAL DATA WASTER SPACE
TREE 0 0 0
GC_S 3744 4651.9 -907.9
TRAIL 104 113.04 -9.04
ASSOCIATION_RULES 272 353 -81
ATTRIBUTES 1728 2528.12 -800.12
AUDITACTION 128 208.48 -80.48
DV 18608 36266.47 -17658.47
S134 728 903.08 -175.08
A178 344 518.75 -174.75
S129 728 896.48 -168.48
AGS_NODES 2864 4510.33 -1646.33
S149 472 633.79 -161.79
S127 728 871.62 -143.62
tu 2232 3619.76 -1387.76
PCd_DATA 3112 4371.75 -1259.75
Maybe you are looking for
-
How to fix: "One or more of your USB device drawing too much power..."
Plugged my iPhone to do my usual download of photos off my phone into my iPhoto library so that I can edit them and post on eBay and Etsy. Suddenly, I'm getting the error message: "Because a USB device was drawing too much power from your computer,
-
I missed my digital booklets, how can I retrive them?
-
I just started working in ODI sometime back. But getting problem while creating a fact table. In datstore i am creating foreign keys(i.e Reference Key) for the fact table which have respective parent table and primary key. but after executing the int
-
Can only use phone in speaker phone mode
I can only use the phone in speaker phone mode. Neither party can hear the phone in regular mode. Any ideas
-
My MacBook Pro has locked me out how do I access?
My daughter has her exams tomorrow and her cheat sheets are on her computer. We went to log on as normal and her passwords etc are now incorrect and it is not accepting the Apple ID an password to change anything. I have one stressed out girl!!! How