Automated exports to excel

is there anyway to have a scheduled report - automatically export to excel and email the attachment to a distribution list?
is there another tool i can use in conjunction with discoverer to get this to work.
pareena

Hi Pareena
Please do the folowing...
1. Install Discoverer on a server/ PC which will never be shut down
2. Install a programm called WINAT (or any other Event scheduler ) also on the server.
3. Create a batch file which will invoke Discoverer, open an wbook and sheet from the databse, execute it and get it to export the result as an EXCEL to a folder on the Server. Sample code is ...
C:\orant\discvr31\DIS31USR.EXE /APPS_GWYUID APPLSYSPUB/PUB /APPS_FNDNAM APPS /APPS_USER /APPS_RESPONSIBILITY "ABCD" /connect login/password@connect string /batch /opendb "WorkBook Name" /sheet Number /export XLS C:\report_name.xls.
4. Create yet an another batch file which will pick up this excel file and email it to an email group.
We have been successfully sending out Excel version of a critical report to a set of people every week day morning at 5:00 am using the above route.
All the best.
Thanks
-Uma

Similar Messages

  • Export to excel formatting

    I'm working on a quote report which has narrative sections as well as a table. I can get the report to look great in the application but it has formatting problems once exported to excel.
    In one of my narrative reports I have a simple table with a few columns. Once exported to excel the first narrative column is the entire width of the report table below it. The large cell row is also merged cells in excel.
    Is there anything that can be done to help force how the report goes into excel?
    I have also tried creating the report in a narrative html table to export into excel.

    Can someone explain if they face similar issues as I am when you export a report output on portal to Excel it takes huge size. I assume it because of all the color formatting etc. but is there a way to reduce this size. 3.5 Bex Analyzer same report takes only 3 MB while if I export it from portals it takes 32 MB.

  • After Export to Excel File error while opening using xmlwriter in silverlight

    Can one help me in fixing following issue after to export to excel had done iam getting following error message 
    "The file you are trying to open, 'test.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do uou want to open the file now ?"
    If i click Yes file opens correctly but it shows above message . Can any one suggest me how to avoid this programatically with the following code.
    I tried by changing the file saving as  .xls to .xlsx  but it doesnt works.
    Public Sub Export()
    Dim ss As String = "urn:schemas-microsoft-com:office:spreadsheet"
    Dim DataType As String
    Dim DataValue As Object
    'Dim DataView As C1.Silverlight.Data.DataView = m_DataGrid.ItemsSource
    'Dim ItemsSource As C1.Silverlight.Data.DataTable = DataView.Table
    Dim XmlSettings As XmlWriterSettings
    Dim ColumnBinding As Binding
    Dim FieldName As String
    Dim DataGridColumn As C1.Silverlight.DataGrid.DataGridColumn
    Dim ColumnIndex As Integer
    Dim J As Integer
    Dim DataGridRow As C1.Silverlight.DataGrid.DataGridRow
    Dim CommonUtil As New GoldCRM.Core.Common.Util
    Dim PropertyInfo As System.Reflection.PropertyInfo
    Dim CellFormat As String
    Try
    If m_DataGrid.Rows.Count = 0 Then Exit Try
    XmlSettings = New XmlWriterSettings
    XmlSettings.Indent = True
    XmlSettings.NewLineOnAttributes = False
    Using myXML As XmlWriter = XmlWriter.Create(m_Stream, XmlSettings)
    With myXML
    .WriteStartDocument()
    .WriteProcessingInstruction("mso-application", "progid=" & ControlChars.Quote & "Excel.Sheet" & ControlChars.Quote)
    .WriteStartElement("Workbook", ss)
    .WriteStartElement("DocumentProperties", "urn:schemas-microsoft-com:office:office")
    .WriteElementString("Author", m_DocumentProperties.Author)
    .WriteElementString("LastAuthor", String.Format("{0} {1}", Application.Current.Resources("EmpFirstName"), Application.Current.Resources("EmpLastName")))
    .WriteElementString("Created", m_DocumentProperties.Created)
    .WriteElementString("LastSaved", m_DocumentProperties.LastSaved)
    .WriteElementString("Company", Application.Current.Resources("REPORTINGSITENAME"))
    .WriteElementString("Version", m_DocumentProperties.Version)
    .WriteEndElement() 'Document Properties
    .WriteStartElement("ExcelWorkbook", "urn:schemas-microsoft-com:office:excel")
    .WriteElementString("WindowHeight", m_WorkbookProperties.WindowHeight)
    .WriteElementString("WindowWidth", m_WorkbookProperties.WindowWidth)
    .WriteElementString("WindowTopX", m_WorkbookProperties.WindowTopX)
    .WriteElementString("WindowTopY", m_WorkbookProperties.WindowTopY)
    .WriteElementString("ProtectStructure", m_WorkbookProperties.ProtectStructure)
    .WriteElementString("ProtectWindows", m_WorkbookProperties.ProtectWindows)
    .WriteEndElement() 'Excel Workbook
    .WriteStartElement("Styles")
    For I As Integer = 0 To m_Styles.Count - 1
    .WriteStartElement("Style")
    .WriteAttributeString("ss", "ID", ss, m_Styles(I).ID)
    If m_Styles(I).Name <> "" Then
    .WriteAttributeString("ss", "Name", ss, m_Styles(I).Name)
    End If
    'ALIGNMENT LOGIC:
    .WriteStartElement("Alignment")
    If Not m_Styles(I).Alignment Is Nothing Then
    If m_Styles(I).Alignment.Horizontal <> 0 Then
    .WriteAttributeString("ss", "Horizontal", ss, m_Styles(I).Alignment.Horizontal.ToString)
    End If
    If m_Styles(I).Alignment.Vertical <> 0 Then
    .WriteAttributeString("ss", "Vertical", ss, m_Styles(I).Alignment.Vertical.ToString)
    End If
    If m_Styles(I).Alignment.WrapText = True Then
    .WriteAttributeString("ss", "WrapText", ss, "1")
    End If
    End If
    .WriteEndElement()
    'BORDER LOGIC:
    .WriteStartElement("Borders")
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Bottom")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Left")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Right")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteStartElement("Border")
    .WriteAttributeString("ss", "Position", ss, "Top")
    .WriteAttributeString("ss", "LineStyle", ss, "Continuous")
    .WriteAttributeString("ss", "Weight", ss, "1")
    .WriteEndElement() 'Border
    .WriteEndElement() 'Borders
    'FONT LOGIC:
    .WriteStartElement("Font")
    Dim myFont As Excel.Styles.Font = m_Styles(I).Font
    .WriteAttributeString("ss", "FontName", ss, myFont.FontName.ToString)
    .WriteAttributeString("ss", "Size", ss, myFont.Size)
    .WriteAttributeString("ss", "Color", ss, myFont.Color.ToString.Remove(1, 2))
    If myFont.Bold = True Then .WriteAttributeString("ss", "Bold", ss, "1")
    If myFont.Italic = True Then .WriteAttributeString("ss", "Italic", ss, "1")
    If myFont.Underline <> 0 Then .WriteAttributeString("ss", "Underline", ss, myFont.Underline.ToString)
    .WriteEndElement()
    Dim myInterior As Excel.Styles.Interior = m_Styles(I).Interior
    .WriteStartElement("Interior")
    .WriteAttributeString("ss", "Color", ss, myInterior.Color.ToString.Remove(1, 2))
    .WriteAttributeString("ss", "Pattern", ss, "Solid")
    .WriteEndElement()
    .WriteStartElement("NumberFormat")
    .WriteEndElement()
    .WriteStartElement("Protection")
    .WriteEndElement()
    .WriteEndElement() 'Style
    Next I
    .WriteStartElement("Style")
    .WriteAttributeString("ss", "ID", ss, "DateStyle")
    .WriteStartElement("NumberFormat")
    .WriteAttributeString("ss", "Format", ss, "General Date")
    .WriteEndElement() 'NumberFormat
    .WriteEndElement() 'Style
    .WriteStartElement("Style")
    .WriteAttributeString("ss", "ID", ss, "HeaderStyle")
    .WriteStartElement("Font")
    .WriteAttributeString("x", "Family", ss, "Swiss")
    .WriteAttributeString("ss", "Bold", ss, "1")
    .WriteEndElement() 'Font
    .WriteEndElement() 'Style
    .WriteEndElement() 'Styles
    'WORKSHEETS:
    .WriteStartElement("Worksheet")
    .WriteAttributeString("ss", "Name", ss, "WORKSHEET")
    .WriteStartElement("Table")
    .WriteAttributeString("ss", "ExpandedColumnCount", ss, m_DataGrid.Columns.Count)
    .WriteAttributeString("ss", "ExpandedRowCount", ss, m_DataGrid.Rows.Count + 100) 'Temporary fix: sometimes 1 row is not added.
    .WriteAttributeString("ss", "FullColumns", ss, m_DataGrid.Columns.Count)
    .WriteAttributeString("ss", "FullRows", ss, m_DataGrid.Rows.Count + 100) 'Temporary fix: sometimes 1 row is not added.
    .WriteAttributeString("ss", "DefaultRowHeight", ss, 15)
    For Each DataGridColumn In m_DataGrid.Columns
    If DataGridColumn.Visibility = Visibility.Visible Then
    .WriteStartElement("Column")
    If TypeOf DataGridColumn Is C1.Silverlight.DataGrid.DataGridNumericColumn Then
    .WriteAttributeString("ss", "AutoFitWidth", ss, 1)
    ElseIf TypeOf DataGridColumn Is C1.Silverlight.DataGrid.DataGridDateTimeColumn Then
    .WriteAttributeString("ss", "AutoFitWidth", ss, 1)
    Else
    .WriteAttributeString("ss", "AutoFitWidth", ss, 0)
    End If
    If DataGridColumn.Width.Value <= 100 Then
    .WriteAttributeString("ss", "Width", ss, 100)
    Else
    .WriteAttributeString("ss", "Width", ss, DataGridColumn.Width.Value)
    End If
    .WriteEndElement()
    End If
    Next
    J = 0
    For Each DataGridRow In m_DataGrid.Rows
    J += 1
    If TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow Then
    .WriteStartElement("Row")
    .WriteAttributeString("ss", "Index", ss, J)
    .WriteAttributeString("ss", "AutoFitHeight", ss, 0)
    .WriteAttributeString("ss", "Height", ss, 15)
    ColumnIndex = 0
    For Each DataGridColumn In m_DataGrid.Columns
    If DataGridColumn.Visibility = Visibility.Visible Then
    FieldName = String.Empty
    If TypeOf DataGridColumn Is DataGridBoundColumn Then
    ColumnBinding = TryCast(DataGridColumn, DataGridBoundColumn).Binding
    If ColumnBinding.Path IsNot Nothing Then
    FieldName = ColumnBinding.Path.Path
    End If
    ElseIf TypeOf DataGridColumn Is DataGridTemplateColumn Then
    If DataGridColumn.FilterMemberPath IsNot Nothing Then
    FieldName = DataGridColumn.FilterMemberPath.Trim
    End If
    End If
    If Not FieldName.Equals(String.Empty) Then
    ColumnIndex += 1
    .WriteStartElement("Cell")
    .WriteAttributeString("ss", "Index", ss, ColumnIndex)
    .WriteAttributeString("ss", "MergeAcross", ss, 0)
    .WriteAttributeString("ss", "StyleID", ss, "HeaderStyle")
    .WriteStartElement("Data")
    .WriteAttributeString("ss", "Type", ss, "String")
    If DataGridColumn.Header IsNot Nothing Then
    .WriteValue(DataGridColumn.Header.ToString)
    Else
    .WriteValue("")
    End If
    .WriteEndElement() 'Data
    .WriteEndElement() 'Cell
    End If
    End If
    Next
    .WriteEndElement() 'Row
    End If
    If Not (TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow) Then
    .WriteStartElement("Row")
    .WriteAttributeString("ss", "Index", ss, J + 1)
    .WriteAttributeString("ss", "AutoFitHeight", ss, 0)
    .WriteAttributeString("ss", "Height", ss, 15)
    ColumnIndex = 0
    For Each DataGridColumn In m_DataGrid.Columns
    If DataGridColumn.Visibility = Visibility.Visible Then
    FieldName = String.Empty
    If TypeOf DataGridColumn Is DataGridBoundColumn Then
    ColumnBinding = TryCast(DataGridColumn, DataGridBoundColumn).Binding
    If ColumnBinding.Path IsNot Nothing Then
    FieldName = ColumnBinding.Path.Path
    End If
    ElseIf TypeOf DataGridColumn Is DataGridTemplateColumn Then
    If DataGridColumn.FilterMemberPath IsNot Nothing Then
    FieldName = DataGridColumn.FilterMemberPath.Trim
    End If
    End If
    If Not FieldName.Equals(String.Empty) Then
    ColumnIndex += 1
    Dim DataCellValue As Object = Nothing
    If Not (TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow) Then
    PropertyInfo = CommonUtil.GetProperty(DataGridRow.DataItem, FieldName)
    If PropertyInfo IsNot Nothing Then
    DataCellValue = PropertyInfo.GetValue(DataGridRow.DataItem, Nothing)
    End If
    End If
    CellFormat = String.Empty
    If DataCellValue IsNot Nothing Then
    Select Case DataCellValue.GetType.Name.ToUpper
    Case "BitmapImage".ToUpper
    DataValue = "Image"
    DataType = "String"
    Case "Hyperlink".ToUpper
    DataType = "String"
    DataValue = "Hyperlink"
    Case "Decimal".ToUpper
    DataType = "Number"
    DataValue = DataCellValue
    Case "DateTime".ToUpper
    If CType(DataCellValue, Date).Year > 1900 Then
    DataType = "DateTime"
    DataValue = DataCellValue
    CellFormat = "DateStyle"
    Else
    DataType = "String"
    DataValue = DataCellValue
    End If
    Case Else
    DataType = "String"
    DataValue = DataCellValue
    End Select
    Else
    DataType = "String"
    DataValue = String.Empty
    End If
    .WriteStartElement("Cell")
    .WriteAttributeString("ss", "Index", ss, ColumnIndex)
    .WriteAttributeString("ss", "MergeAcross", ss, 0)
    If Not CellFormat.Equals(String.Empty) Then
    .WriteAttributeString("ss", "StyleID", ss, CellFormat)
    End If
    .WriteStartElement("Data")
    .WriteAttributeString("ss", "Type", ss, DataType)
    .WriteValue(DataValue)
    .WriteEndElement() 'Data
    .WriteEndElement() 'Cell
    End If
    End If
    Next
    .WriteEndElement() 'Row
    End If
    Next
    .WriteEndElement() 'Table
    .WriteEndElement() 'Worksheet
    .WriteEndElement() 'Workbook
    .WriteEndDocument()
    .Close()
    End With
    End Using
    Catch ex As Exception
    Throw New Exception(ex.Message, ex)
    Finally
    If m_Stream IsNot Nothing Then
    m_Stream.Close()
    m_Stream.Dispose()
    End If
    m_Stream = Nothing
    m_DataGrid.IsLoading = False
    DataValue = Nothing
    'DataView = Nothing
    'ItemsSource = Nothing
    XmlSettings = Nothing
    ColumnBinding = Nothing
    DataGridColumn = Nothing
    End Try
    End Sub
    Krishna

    Hi,
    i have the same issue now where i need to populate the xport file name as report name. can you send me your solution please.

  • Export to Excel Action in MS SSRS Report not exporting all data in Report

    Hi,
    I have developed a complex Report that has many expandable nodes in a table format. The report works fine.
    However, when I export the Report to Excel using Actions --> export to Excel, only the data in expanded nodes is included. The data in collapsed nodes is not included.
    I am looking for approach to include data in expanded nodes in Excel Export. The expanded data can be expanded in Excel.
    Any help in this regard will be appreciated.

    Hi Abhijit PS,
    Per my understanding you are experiencing the issue with the excel report which have add the drill down action, after export to excel only the expanded nodes included and the collapsed nodes is not shown, right?
    Generally, if we expand the nodes before export to excel then the excel will display the expanded details row and keep collapsed the details row which haven't expand, but we have the toggle "+","-" on the left of the Excel to help
    control the expand and collapse, when you click the "+" you can expand the collapsed notes to see the details rows.
    I have tested on my local environment with different version of SSRS and can always see the "+","-" as below:
    On the Top left corner you can find the "1","2", this help to control the "Collapse All" and "Expand All".
    If you can't see the "+","-" in the excel, the issue can be caused by the Excel version you are currently using, and also excel have limit support of this, please provide us the Excel version information and the SSRS version. You
    can reference to this similar thread:
    lost collapsing columns when export to excel
    Please try to export other drill down report to excel and check if they work fine, if they did, the issue can be caused by the drill down action you have added in this report is not correctly, if possible, please try to redesign the report.
    Article below about how to add  Expand/Collapse Action to an Item for your reference:
    http://msdn.microsoft.com/en-us/library/dd220405.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

  • Exporting to Excel from Aria People Search

    Is it possible to export to Excel from Aria People Search.
    I would like to output the Org Chart (built in) and the Tree (I created) to an Excel file.
    Does anyone know how to do this?
    Thanks,
    Tom

    Hi,
    If you are using 10g, then OLE2 is supported. However, it will be executed in the App Server Machine.
    If you want to do the operation in the Client machine (as how it was done in the Client / Server), you need to use Client_OLE (Which is part of WebUtil).
    Look at
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    for more details on WebUtil.
    HTH.
    Regards,
    Arun

  • Matrix exporting to excel with empty columns, with page break option of "Between each instance of a group" selected.

    I am working with Report Builder 3.0 I am using a matrix to produce grouped data on separate worksheets in excel.
    The select is:
    SELECT ID, Measurement, Value, [Date] FROM Measurements_Report. (please ignore the underscores they are just for formatting) 
    The contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33_____10/1/2014
    2___Hot_________44_____10/2/2014
    3___Cold_________55_____10/2/2014
    The matrix contains a single row group based on the field "measurement". The Measurement group has the page break option of "Between each instance of a group" selected. 
    There is a column group based on the field "Date". 
    When this is matrix is exported to excel on the first worksheet (Hot) there are three columns as shown below:
    ID__10/1/2014____10/2/2014___10/2/1014
    1___33
    2_______________44
    Notice the last column doesn't have a value.
    On the second worksheet (Cold) there are also three columns as shown below:
    ID__10/1/2014___10/2/2014___10/2/1014
    3__________________________55
    This time notice there is only one row and only a value in the last column.
    I only want the columns with data for that worksheet to show up. How can I remove these empty/duplicate columns? Hopefully there is a simple fix. Thanks ahead of time.

    With the following contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33______10/1/2014
    2___Hot_________43______10/1/2014
    2___Hot_________44______10/2/2014
    3___Cold________55______10/2/2014
    Returns on the first tab (Hot):
    ID__10/1/2014____10/1/2014____10/2/2014
    1___33
    2_________________43
    2______________________________44
    In the excel worksheet it contains a separate column for each date with a value. Thanks again!
    Why is the same date repeating on multiple columns? Do you've the time part also returned from database?
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Issue with export in Excel in WAD

    Hi
    I have an issue with export to excel in WAD. I have a web template with two or more tabs.
    On the webtemplate I have two buttons to export to excel. One to export the content from the active tab and one button to export content in all tabs.
    My problem is that when I export to excel it always add the current/active content twice. I've tried with both buttons and they work as expected except that they export one table to much (the active).
    can anyone help / give a clue what to look for.
    br,
    John
    Edited by: John Dolph on Apr 15, 2010 10:50 AM

    Hi
    Sorry I has been a while but the problem still occurs,
    I've defined my export button group like this in a seperate template and I expected that it would only return the resultset from TAB_A and TAB_B but it also export the resultset from the tab I'm currently on.
    <bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" />
                <bi:BUTTON_GROUP_ITEM name="TAB_BUTTONs" designheight="23" designwidth="300" >
                    <bi:BUTTON_LIST type="ORDEREDLIST" >
                        <bi:BUTTON type="COMPOSITE" index="2" >
                            <bi:CAPTION value="EXCEL" />
                            <bi:TOOLTIP value="Table, Graph and/or Table/Graph download to PDF" />
                            <bi:ACTION type="CHOICE" value="INSTRUCTION" >
                                <bi:INSTRUCTION >
                                    <bi:EXPORT >
                                        <bi:ITEM_REF_LIST type="UNORDEREDLIST" >
                                            <bi:ITEM_REF index="1" value="TAB_A_ANALYSIS" />
                                            <bi:ITEM_REF index="2" value="TAB_A_CHART" />
                                            <bi:ITEM_REF index="3" value="TAB_B_ANALYSIS" />
                                            <bi:ITEM_REF index="4" value="TAB_B_CHART" />
                                        </bi:ITEM_REF_LIST>
                                        <bi:EXPORT_FORMAT value="XLS" />
                                    </bi:EXPORT>
                                </bi:INSTRUCTION>
                            </bi:ACTION>
                        </bi:BUTTON>

  • Export to excel and others inactive in ALV GRID

    Hi,
    I am creating a report using the 'REUSE_ALV_GRID_DISPLAY' FM and the export to excel fucntionality is inactive. There is no spreadsheet push button on the application toolbar and the List->Export sub menu items 'Word processing' 'spreadsheet' and 'local file ' are all inactive. I have tried to run the code on a different system and the export to excel functionality works there. I am considering creating a new GUI staus using the standard status contained in the function group of 'REUSE_ALV_GRID_DISPLAY' but will like to know if this issues can be remedied e.g is it probably a basis issue or a configuration issue e.t.c.
    Thanks
    Andy.

    Hi Max,
    Checked the PF_STATUS_SET routine and there was code that deactivated  all gui download function codes of the standard gui status if an authorisation check failed ( auth obj. S_GUI) but the function code for excel export is &XXL not &VEXCEL.
    Thanks for the prompt reply max, much appreciated
    regards
    Andy.

  • Running report with alv grid in background and exporting to excel

    Hi Guys,
                  I've created a report program that uses the alv grid. When I run the report in foreground, I can easily export it to excel. However, if I run it in background, then display the spooled report and try to export to excel, it does not put it in excel format (seems to go over as one big column rather than individual columns that are defined in the report). Is there a way to run it in background ,export to excel properly and i have to email also in Excel sheet format.?
    Thanks,
    Gopi.

    In background u cannot do a download to excel. you can do is create CSV format file
    or
    write a report for output with tabs then call that report using
      submit yXXXX exporting list to memory
               and return.
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = report_list
        exceptions
          not_found  = 1
          others     = 2.
    and send the report_list to email users

  • Header of ALV with space when exported to excel using Standard ALV

    Hi,
    I am Using Reuse alv grid display    to dispaly my report and it works fine and I am using the standard SAP application tool to export it to excel.
    But for some of the header fields I am getting space in the excel sheet but there is no space while displaying through ALV.
    I am using the following field catalog for the same.
    wa_fieldcat-col_pos = 10.
      wa_fieldcat-fieldname = 'SOLLWERT'.
      wa_fieldcat-seltext_l  = 'text-t10'.      "Target value (* this has no space here)
      wa_fieldcat-outputlen = 32.
    wa_fieldcat-colwidth_optimize = 'X'.
      APPEND wa_fieldcat to it_fieldcat.
    but there are still space for this Colomn when exported to excel if after optimizing the column.
    kindly suggest what field needs to be passed to the field catalogoe to avoid spaces in excel for the header.
    Thanks
    Ritesh

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Export to Excel Issues

    We just upgraded from Crystal 8.5 to Crystal 10.  When we export to Excel, the formatting is terrible.  We have close to 100 reports that we routinely export...some with 40,000 rows.  To try to fix these once they're in Excel is out of the question.
    In previous threads I've been reading about a "patch" that supposedly fixes this.  Where can I download this?
    Eric Hill

    The way reports work and export changed significantly in CR 9. While there was a dll available to help move from CR 8.x to CR 9, that dll is no longer available. Not for CR 9, nor any other versions of CR. Instead, you will have to modify your reports as per the article [Crystal Reports Designer Version 10 Exporting to Microsoft Excel|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/10d3ba69-951e-2b10-3093-e3cf287a57c9?quicklink=index&overridelayout=true].
    No other work-arounds or options exist at this time.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Cross-Tab Report export to Excel

    I have a cross-tab report that I need to export to excel and keep the same formatting.  When I export the report the first column is Part # the next is operation #.  The report is grouped on Part number, but each part may have multi operation.  When I look at the report in Crystal or as a PDF the part # is at the top then each operation is a seperate row that follows.  When I export it to excel it works fine but instead of the part # appearing at the top then follow by each operation the part number ends up on the last operation in the list.  How can I export this and keep the format the same?  by the way I have tried both xls data only and xls 2007 options

    Hello Experts,
    I also tried to export the CR cross tab report in Excel Data only format.
    Also I want to display Row label i.e. my Rows are different dates so I created a text field and named as Date & Time but when export it to Excel Data Only, the date time label appears 1 row above then rest of the columns. It works good while looking on InfoView but export messed it up.
    Can you please suggest.

  • Export to excel with javascript/vbscript or with plsql(html table)

    i have searched for a way to export data from OracleXe to excel without losing formatting .
    So far i have found 2 possible relatively easy ways that i am still researching
    (i do not include the ask tom sylk format way of exporting )
    1 to export the query to a html table, while using stylesheets for formatting
    (using microsoft specific styles)
    2. use of javascript/vbscript to fill an array and write this array to excel with use
    of visual basic for applications in excel.This also provides charting capabilities.
    I am still researching this two ways, and have
    encountered a few obstacles (help would be appreciated)
    1 the first way:
    a. create a button " export to excel"
    b. create the following pl/sql procedure:
    owa_util.mime_header('application/vnd.ms-excel');
    owa_util.http_header_close;
      HTP.PRINT('<html>');
      HTP.PRINT('<head>');
      HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
      HTP.PRINT('<title>Title of the HTML File</title>');
      HTP.PRINT('</head>');
      HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
      HTP.PRINT('<h1>Heading in the HTML File</h1>');
      HTP.PRINT('<p>Some text in the HTML file.');
      HTP.PRINT('</body>');
      HTP.PRINT('</html>');
    htmldb_application.g_page_text_generated := true;
    htmldb_application.g_unrecoverable_error := true;
    c: run the procedure conditionally based on the button  "export to excel"
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true; is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen.
    To export to excel while retaining data formatting  you have to use microsoft excel
    specific styles(Seedocumentation on the microsoft site)
    2.The second way:
    a create a pl/sql procedure or sql query.
    b use this query to fill a vbscript/javascript array with values
    c write these values to excel with use of vba in excel :
    the obstacle i encountered here was that i dont know how to export the result of a
    query to a visual basic script or javascript array.

    Using approach 1) works fine for me.
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true;
    is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen. Why is this a problem?
    I created the button to export the excel file on page 1 and created your pl/sql procedure on page 2 using an onload process.
    Works fine.
    Other approaches for exporting to excel are:
    http://www.oracle.com/technology/pub/articles/saternos_broadcast.html
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:5685133631021176591::::P54_ID:1962
    ~Dietmar.

  • Formatting lost when exported to excel

    When I export a worksheet results to excel the formatting is being lost like in my worksheet I wanted a line and space for every grouped item which is lost in excel sheet. Is there a way get around for this ?
    Thanks

    Not exactly sure what formatting you're having a problem with, but I'll list some of the points I can think of, of exporting to Excel and will hopefully cover it. I believe you may be referring to point 1 below, but just in case ...
    1. If you have group sort on for a column or more, then when exported to Excel, you won't have those 'blank' values for the column(s) that's grouped. That's why when you know someone will be exporting to Excel, it's a pain as all group sorts are usually taken back off (which can screw up exactly what you're trying to point out in the workbook).
    2. If you have a page -> item (ie: lots of values you pull down like a LOV), then I believe, that you won't get an Excel worksheet for each value in the LOV but only for the one currently displayed when you performed the File -> Export.
    3. When you export to Excel, you only get actual values, no functions of how it was calculated (ie: it'll be static, not dynamic).
    4. You can export to Excel using Plus and might not get the formatting characteristics you want in Excel. I've seen users specifically bring up Viewer just to get the formatting characteristics (colors, fonts, etc.) when they export from that Disco version.
    5. Sometimes when you export from Disco to Excel, that actual value that gets posted in Excel is different. I know ... it sounds wierd, but it's a fact. The problem is NOT Disco, but is a problem with Windows and a setting has to be altered (although I'd have to hunt what that setting is now though). However, I've only seen this happen a few times, so definitely not the norm.
    Russ

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

Maybe you are looking for