#NAME shows in export to excel
When an export to excel is done in a report some colunms display #NAME. These columns have a '-','*' , etc. as the leading character. Is there a way to have the correct data in the excel report?
Thanks
the 'old fashioned way' is to add a single quote ( ' ) add the start of the string. Excel recognizes this as "this entry is text only" and will not display it.
Similar Messages
-
I am using Export to Excel functionality in rdl report.
File name should be "Profitabilty By Buyer". It is working as expected in IE and chrome.
But in mozilla firefox the file name appears as "Profitabilty".
So the issue is it doesnt consider anything after space and user requirement is such that I cant put underscore("_") also instead of space.
Kindly suggest the proper solution.Hi Mukesh,
Reporting Services, we use a Web browser to view the report that deploy to Report Service. However, not all report functionally is supported by all browsers. Such as, the print button is not supported in Mozilla Firefox. It works only in Internet Explorer
due to it uses ActiveX for the print button.
I have tested it on my local environment, (SQL Server Reporting Services 2008, Firefox 28.0), we cannot reproduce this issue. So the issue can be the custom setting of your browser. Since SSRS reports are not about targeting NON-IE browsers, so in your scenario,
we recommend you use IE to view report on Report Manager.
And you said that you cannot put underscore ("_") also instead of space. However we can do this which you can see on the screenshot below.
Regards,
Charlie Liao
TechNet Community Support -
Performance Point Dashboard - Show Details - Export to Excel - 404 FILE NOT FOUND
We are receiving an error when we want to drill down to the details of a report. We see the details but when we try to Export to Excel we get a file not found error.
Both the aspx files are there in the 15/_Layouts folder.
http://MySharepointServer/sites/PerformancePoint/_layouts/15/PPSWebParts/DrillThrough.aspx works. I see the details here and export to excel option
When I click export to Excel I get to below page and get the file not found error
http://MySharepointServer/_layouts/15/PPSWebParts/DrillThroughOfficeExport.aspx
See Attached Screenshots using the link below
https://www.evernote.com/shard/s433/sh/a6b7e4f7-babb-457b-addd-4c4fc7f57cc9/a6681814ad2ff11d21a45fd3f2bd8b08
Thanks in advance.
SunhilHi! Rebecca,
Thanks for helping out. Please see the error details
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at Microsoft.SharePoint.Utilities.SPUtilityInternal.Send404(HttpContext context)
at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.OnPreInit(EventArgs e)
at Microsoft.SharePoint.WebControls.LayoutsPageBase.OnPreInit(EventArgs e)
at Microsoft.PerformancePoint.Scorecards.WebControls.DrillThrough15.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
Exception trying get context compatibility level: System.IO.FileNotFoundException: The site http://MySharepointServer:80/_layouts/15/PPSWebParts/DrillThroughOfficeExport.aspx could not be found in the Web application SPWebApplication Name=SharePoint - 80.
at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId,
Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String&
appSiteDomainId, Uri& primaryUri)
at Microsoft.SharePoint.ApplicationRuntim...
Thanks,
Sunhil
Sunhil -
When exporting reports from access to excel the =sum() (group and total sums) text boxes all have the text box name prefixed to them in excel. They look good in access reports. Any way to turn this off? Why is this happening?
I've seen the same issue on 2 computers running Access 2010. I also tried this in access 2013 and had the same issue.
See the images below as examples, the first is from access, the second is the report exported to excel.
Access 2010 (http://i.stack.imgur.com/4roFM.png)
Exported report viewed in Excel 2010 (http://i.stack.imgur.com/6B1zj.png)I've seen the same issue on 2 computers running Access 2010. I also tried this in access 2013 and had the same issue.
Hi Scott,
Did you use the same database file? May I know how did you create the report and those TextBoxes?
I couldn't reproduce your problem, this is what I did:
Create a sample table and the corresponding report. Group it by one of the field, then give it a footer section. In the footer section I inserted a TextBox and set the ControlSource property to "=Sum([fieldname])". But the name of the TextBox didn't
show in the exported Excel file. Check the screenshots here:
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Export to Excel - File Name WAD 7.0
Hi All,
I am using Export to Excel Functionality with WAD 7.0 to export the report to excel format.
I have used button web item, with an excel picture above it. The functionality works fine.
But while exporting the name of excel file shown is WAD 7.0 name.
ex. My WAD 7.0 name is IFIOP_C07_W700, the excel file also gets saved in this name.
I want it to be made customizable.
Can you throw some pointers.
Thanks,
Sri Arun PrianHi,
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. -
Y-axis Does not show values when exported to excel
Hi,
We are facing trouble while showing Y-axis values when report is exported to excel. On report Y-axis is shown properly however when we export it to excel only 1 value is shown with arrow mark(=>).
If we will right click Y axis, we can see all data exported in "Select Data". If we select Y-axis, and change axis properties to automatic, we can see Y-axis values on excel.
Now, is there any property setting which will show all the data on Y-axis instead of showing up single value with arrow?Thanks for your reply. I tried it closing all sheets and exporting, however result doesn't change. There is an aggregate table we are querying to which holds almost 20k records. Right now I have observed this with 3 reports. In one of the report I am using Horizontal chart. In that report there is issue with X-axis.
e.g.
Band
1000<= |
|
|________________________________
A B C D -
Export to excel in WD ALV - file name change
Hello All,
As of now in standard WD ALV we have export to excel option which will pop a window to save the file with the default file name as excel.xls but we want to change the file name from Excel.xls to Download_username_date.xls at run time.
can you please help me for this requirement.
Thanks,
RaJ.CL_SALV_WD_CONFIG_TABLE provides quite a few methods for the alteration of WD-ALV-Grid, maybe you can find something helpful here.
regards, Lukas -
Could 'export button' show only pdf, and excel only?
Hai,
I am using report viewer, it has export button in that header.
Could 'export button' show only pdf, and excel only?
So the report just only export pdf only or excel only.
Technology:
Asp.net Vs2010
SSRS2012
Windows 7I found the solution:
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/74dad27b-ef7e-4b9b-8922-666b317b3094
This is the additional code, to hide all type of export.
DisableUnwantedExportFormat((ReportViewer)sender, "XML");
DisableUnwantedExportFormat((ReportViewer)sender, "CSV");
DisableUnwantedExportFormat((ReportViewer)sender, "IMAGE");
DisableUnwantedExportFormat((ReportViewer)sender, "PDF");
DisableUnwantedExportFormat((ReportViewer)sender, "MHTML");
DisableUnwantedExportFormat((ReportViewer)sender, "EXCELOPENXML");
DisableUnwantedExportFormat((ReportViewer)sender, "WORDOPENXML"); -
#NAME in Content column when Activities Overview is exported to Excel
When exporting Acitivities Overview to Excel, some of the columns under Content have #NAME in them and Excel indicates that it thinks there is an invalid function involved. When the text is veiwed in the address bar, there is an = sign preceding the text. This seems to only apply for activities of the CS Follow up type and not all of the follow up ones are affected. I noticed that when you create a Follow up, there is a blank line at the top of the contents tab above the text from the activity it was based on. It isn't possible to create this blank line manually, so I am wondering if SAP puts some kind of unprintable character in the blank line that is causing this. If I make any small change to one of the followup activity text, without touching the blank line and then update, the blank line disappears.
Our customer exports their activities regularly and would like to see all of the text in the Content column instead of this error. Does anyone know why this is happening?I have come across two scenarios that may be causing this:
The number of characters in the text box is larger than can be handled by the Excel macro that exports them. It is an Excel limitation. I had the same issue in XL Reporter with the same field.
The other thing one of my customers had is when syncing activities from Outlook. Where the activities had been synced from Outlook on their terminal server, the double quote character synced as a square box, syncing the same from their blackberry synced properly. This caused the contents to be unreadable when exporting to Excel
Just a couple of things to look at! -
Show Repeated key values in Reports and Export Into Excel
Hi Experts,
Currently I am working on the BW3.5 version. Our client requirement to display the repeated key value in web and export same into excel. I have followed the steps in web template which mentioned below to achieve the requirement.
1) In my web template, add the following line to the Template Properties object tag (the tag at the very top of the web template in HTML mode):<param name="SUPPRESS_REPETITION_TEXTS" value=""/>
After the change web template change, Myself execute the report in web, Its fine web. But I export into excel, again the key values are suppressed. So I have followed the steps in query. Then its fine. I mean, I can export into excel with repeated key values.
2) In my query, in Properties and on the Display tab, unchecked "Hide Repeated Key Values".
But do we have any other option without changing query properties to achieve the requirement.. I am fine with the web template change("SUPPRESS_REPETITION_TEXTS"). But I do not want to change the query properties.
Please help me to fix the issue. Thanks in advance.
Thanks,
RRHi Experts,
I have come across one of the suggestion in the below location. Could you plz help me to implement it.
http://www.sapfans.com/forums/viewtopic.php?f=16&t=118185
Suggestion:
You can do exactly what you want, but it will take either a button changing the properties of the web item or a javascript function added to the context menu getting the properties of the table item and changing it to "X" or "". These are just two examples, there are other ways to do this. This is the actual code that sets the suppression for the repeated texts. Hope this helps.
SAP_BW_URL item=âu20ACu2122TABLE_1âu20ACu2122 SUPPRESS_REPETITION_TEXTS=âu20ACu2122Xâu20ACu2122
Thanks,
RR -
SelectOneChoice Lov in Table readOnly show only ID when export to Excel
Hi, I put a af:selectOneChoice readOnly Lov in a table to bring the DESCRIPTION of the ID in a foreig key relation, it do it well in the browser, but when I want to export to EXCEL it show only the ID of the related table.
How can I fix it to show the DESCRIPCION in the exported excel?
Tx in advanceIf I make it in this way, I gonna have two columns one just for the description and other for the combo, maybe in the future I need to make it editable/readonly and thats the reason I only need the combo, but when I want to export to excel it show the id.
The error(maybe not) is because the ADF's programmer who make the excel command go for the iterator and not for the table's gui. -
Newbie: BW Export to Excel/CSV file destination and file name
Is it possible to control where the export of a BW web query is sent by appending the url with some tag voodoo? Also, can I create the file name of the exported file? I figured out how to kick off the export process, but haven't found any code to control the export destination or file name. I wish to skip over the save dialog and write the file to a specific location.
Hello John,
BW provides several ways to export data. Please look into Open Hub for example.
Other options include Information Broadcasting in SAP NetWeaver '04 or MDX, XML Webservices, or OLAP BAPI.
Regards,
Marc
SAP NetWeaver RIG, US BI -
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
KrishnaHi,
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 in Panelcollection not working
Hi,
I am using JDeveloper 11.1.1.4.0. on WinXP
I am surrounding PanelCollection to existing table in my application.
After clicking on export to excel option first time it shows file name as my .jspx file and type as HTML, here it throws exception NPE(i.e. exporting fails).
when i click on the export option in the same page second time it shows the file name as my excel file name and type as Microsoft Excel hence downloads without errors.
I have used the below code snippet inside panelCollection component:
<f:facet name="toolbar">
<af:toolbar id="t1">
<af:commandImageLink text="Export to Excel"
inlineStyle="width:95px;" id="cil4">
<af:exportCollectionActionListener exportedId="tVolDed"
type="excelHTML"
filename="c:\\try.xls"/>
</af:commandImageLink>
</af:toolbar>
Could anybody help me out for the same?
Thanks in advance!At my end, the code is working fine.My code is :
<f:facet name="toolbar">
<af:toolbar id="t1">
<af:commandImageLink text="Export to Excel" inlineStyle="width:95px;"
id="cil4">
<af:exportCollectionActionListener exportedId="t2"
type="excelHTML"
filename="empDtlsExport.xls"/>
</af:commandImageLink>
</af:toolbar>
Could you please try with filename as "try.xls" only.
Please let us know if you are facing this issue. -
SSRS 2012 - Groups in Report Manager aren't present when exported to Excel
Hi all, hope somebody can help with this issue, as I cant seem to find any other posts about it
I have a report in SSRS2012. It was copied from SSRS2005 quite recently, as we have upgraded. The SQL developer said that it didn't need any code changes, as he had some kind of tool to test code problems between the two versions.
The report has a table, with 5 row groups, and one detail row. The table is setup as follows:
Name Sales
Costs Profit
Group1
Group2
Group3
Group4
Group5
DetailsRow
When I run this report using the Report Manager website from SSRS2005, and then export to Excel 2013, I get the 6 row groups in Excel, no problem whatsoever. I can drill into each group in Excel, using the group drilldown column on the left hand side. This
works the same as the Report Manager website.
If I run the exact same report from the Report Manager website in SSRS2012, the Report Manager result is the same as SSRS2005 - all the row groups are present, and the drilldown works fine. However, the export to Excel has issues with the groups. There are
only 3 row groups showing in Excel, along with a column group added for no apparent reason. Drilling into each group shows inconsistent details, and there is no apparent logic as to what is shown within each group.
Hopefully, someone has seen this issue before, and can help, because I have no idea what to do, having spent a couple of days trying to figure it out. I should also mention, that this issue with groups is seen on all my reports which have groups, not just
this report
Thanks for any and all help
NazHi Naz,
According to your description, the report works correctly in SSRS 2005 while the same report doesn’t work in SSRS 2012 when exporting to a Excel file.
In your scenario, please make sure you are migrating the report from SSRS 2005 to SSRS 2012 instead of copying the .rdl directly. Generally, we are using Reporting Services Migration Tool to migrate reports between report server. Please refer to this article:
SQL Server Reporting Services: Migrating SSRS reports, data sources and subscriptions from one server to another.
After migrating the report successfully, you should upgrade the report definition in SQL Server Data Tools to upgrade the .rdl file. Please refer to this article:
Upgrade Reports.
If you have upgraded the report but the issue still persists, please provide report design for our analysis. If possible, please provide some screenshots about the preview result and Excel render result.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Maybe you are looking for
-
Print PDF documents from a report
Hello all, I need to print a PDF document residing on my hard drive(without actually opening the document, just a print) from a custom ABAP report. Any ideas how we can do this? Can we do this with OLE's? Sample code is appreciated. Thanks,
-
How do I get iMovie09 to recognize audio from a firewire interface?
I recently purchased a Behringer Podcast Studio system. It comes with a Behringer Xenyx802 mixing board and a Behringer F-Control Audio - FCA202 Firewire Audio Interface. My computer could see the interface but would not register any audio input. I c
-
Retieve data from Palm Zire m150
My computer crashed and just got a new MAC. Since computer was bought recently, I had not hot-synced my data. I haven't used my Palm for awhile, but was keeping it charged to preserve memory. This last time that I charged it, I discovered that one o
-
Navigation Problems within Notes
Hi. I recently purchased an iPhone 4s and I'm running OS 5.01. Sometimes when I go into the Notes application and a note within it I lose the title/menu bar at the top and I can't get out of the current note. I've got the trash can and reply at the
-
Cannot insert duplicate key row in object Error Message
Morning All, I noticed today that the DW has not been updated with some of my CI's based off my custom class. The event log is showing these error messages. An error countered while attempting to execute ETL Module: ETL process type: Transform Batc