Extra columns when exporting to CSV format
Using Crystal Pro XI R2, I have a report that is listing three fields, each 1" in width next to each other (no gap between columns). When I export to Excel, the resulting file has no blank columns before the data. However, when I export to CSV, even after checking the box to not include header/footers, I get three extra commas preceding the first column of the report. The report only has a single detail section unsuppressed. Since the CSV file is being imported into another application, I must either manually remove the extra commas or fix this problem. Since I am not a member of the punctuation police, I am hoping to find a Crystal solution.
Fuskie
Who originally had six extra commas preceding his data, but reduced it to three after blocking export of headers/footers...
The 3 comas is a good indication that you you have 3 empty fields in your report. Not sure how they may have gotten there without you knowing about it, but that would be my first guess.
See if you can find them. they may be the save color as the back ground, making them "invisible". Try selecting your entire details section and see if you don't see anything unusual.
I've also noticed that CR will allow you to place fields off the edge of the report... even to the left of it. Once their over there you may not be able to select them to remove them.
Assuming that you don't find the offending fields on the report you can try this:
Make a copy of your report using the Save As...
In the copy, while in design view, do a Ctrl+A to select all objects on the report and delete them.
Then simply reinsert the fields you want to export for your CSV export.
Hope this helps,
Jason
Similar Messages
-
Dropping zeros when exported to CSV format
I formated in Numbers using 5 digit place holder and setting "hide seperator" and "show zeros" This looks perfect in Numbers but when I export to CSV (I want to import the mailing list to AddressBook) it drops the front zero. I tried formating a new column as text and pasting the list into it, but it turned into numerical format and dropped the zero again when exported to CSV. Any suggestions would be appreciated. I can't help but feel I am being stupid. This shouldn't be so difficult.
I did the following test:
1) I formatted a column as text and entered several cells worth of 5-digit zip codes that had leading zeros.
2) I formatted a column with a custom format of five digits, leading zeros, and no separator. I typed in a few numbers with less than five digits and they displayed with leading zeros. No surprise there.
3) I formatted a column as text and copy/pasted from column in (2) to this text-formatted column. I was actually surprised it kept the leading zeros because the underlying data (a bunch of 3 and 4 digit numbers) does not actually have them.
4) I exported this file as CSV.
5) I opened the CSV in TextEdit and the leading zeros were there in all three of these columns.
This all seems to be working as you would want it to. Am I doing something different than you?
To complete the test, I opened the CSV with Numbers and it dropped all the leading zeros upon import. But you are not re-importing it into Numbers so this last step wasn't really a fair test. -
Apply conditional formatting when a report is exported to CSV format
Hello
OBIEE dasboard has the option to export the report data to CSV format.
But the problem is that on some columns of the report, it uses various different types of conditional formatting that tells, what to display when data is equal to one of those edge cases. So hence the report on the dashboard page shows accordingly which is fine.
But when the report is exported to CSV format, no conditional formatting is applied and all the raw data is shown without any formatting.
Is there any way to make sure that the conditional formatting is applied even in the data exported to CSV format.
thanksCSV is supposed to be a data dump .. i dont think you can have formatting saved when u download csv file.. try downloading it to excel and changing it to CSV
-
Hide column in SSRS is not working while exporting to CSV format.
Hi,
I have a report where some columns are hidden based on parameter value. When I export to Excel all the hidden columns are hiding which is fine, but the issue is when I exported to CSV all the hidden columns are exporting to csv.
I tried to using " =IIF(Globals!RenderFormat.Name = "CSV", True,False)" in Column visibility but It is not working. When I select Hide option it is working fine. But I want to hide based on expression.
Any help !!!!!!!!Hi sumancv,
In SQL Server Reporting Services (SSRS), we can control whether an item is visible in CSV separately from whether an item is visible in other renderers. As Shahfaisal Muhammed posted earlier, the CSV renderers use the DataElementOutput property to control
visibility. When an item has DataElementOutput=Output, it will appear in the CSV. When an item has DataElementOutput=NoOutput, it will not appear in CSV.
Based on my test, we cannot use expression to control column visibility in the report when it is export to CSV.
Reference:
http://connect.microsoft.com/SQLServer/feedback/details/742658/ssrs-csv-export-issue-for-hiding-certain-columns-using-expressions
Since the issue is by design, I recommend you that submit a wish to the Microsoft Connect at
https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
Show user entered date when ssrs report exported to csv format
Hi All,
How can I show date range parameter entered by user when ssrs report is exported to csv format.
my csv output should look like this....
Date : 01/01/2015 TO 01/31/2015 (user selected dates)
ID,EmpFirstName,EmpLastName,Location
1,Tom,Garry,NY
2,John,Graham,NJ
3,Ron,Lorrie,CA
Thanks,
RH
sqlHi RH,
You can add two textbox at the top outside the tablix and using expression to get the parameter value use have selected to display in the textbox as blew:
TextBox1: =Parameters!Date.Value
TextBox2: =Parameters!To.Value
For Multiple value parameter you can use the expression like : =Join(Parameters!Date.Value,",")
You can rename the two textbox' name in the properties as "Date" and "To" then the two textboxs will display like belkow in the CSV report:
Date TO
01/01/2015 01/31/2015
ID EmpFirstName EmpLastName Location
1 Tom Garry NY
2 John Graham NJ
3 Ron Lorrie CA
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
Hide/Show columns only when exporting to .CSV
Hi, how can i hide a particular column when exporting the report to excel
Hi,
You can set column conditionally by request.
E.g. columns that you do not like export set condition PL/SQL function body returning a boolean
RETURN NVL(:REQUEST,'EMPTY') NOT IN('CSV','XLS','PDF','XML','RTF');I have sample here
http://apex.oracle.com/pls/otn/f?p=40323:63
EMPNO column is not exported from report
Br,Jari -
Formatting Columns when exported to HTML
Is there a way to specify the WIDTH of a column when exporting
to an HTML file?
Inside of Discoverer 3.1 or when printed on paper the columns
are fine, however when exported they are 'resized' to the width
of the column heading(or longest value in column).
Thanks in advanceScott,
You will need to look through your xml files with Discoverer.
Support has a document on how you can alter and change the look
and feel of the html. If they are unable to locate tell them to
talk with development.
Christopher
www.iloveapple.net:88 -
Post Author: Vivek Sharma
CA Forum: Exporting
Hello All,
Version of Crystal Reports: 11.0.0.1282
Wanted to find out if it is possible to export data from a main report and subreport together in csv format? So far if I export in csv format it only exports data from main report and not from subreport.
Thanks,VivekDaniel and Atul highlight the two different kinds of data out processes that Essbase supports: targeted exports of selected parts of the database and full backup/migration-ready exports.
You didn't state what you were trying to do, but you will want to follow one or the other approach, depending on need. I wouldn't, for instance, use a targetted export to write out the entire db -- it would be very slow (to put it mildly). By the same token, writing out the entire db to a comma delimted columnar file to get 50 records would be a bit of a time waster, too.
Regards,
Cameron Lackpour -
Adding sysdate to filename when exporting to csv in Apex V3.0.1 using IE6
Hi,
I have created an application item (AI_DTTIME), together with an application computation that fires on before-header that is set-up as follows:
TO_CHAR(sysdate, 'DDMMYYYY HH24:MI') ||'.'
Within the report addtributes on a page under "Report Export", within the filename, I assigned &AI_DTTIME.
When I go to test it by clicking on the link label, it seems to assign a number to the filename, such as 40.csv. Each time I clink on the link label, the filename value simply increments to the next value, i.e 41.csv
Can anyone see what I may be doing wrong or how to apply the sysdate to a filename under "Report Export".
Thanks.
Tony.Hi Tony, Hi Andy
I have a similar functionality to achieve by adding sysdate of filename when exporting to csv, adding wthr this csv is in dev or prod,URL of this report and it is powered by xyz company
I have created an application item same as andy did and the application computation with computation item AI_DTTIME, computation point - Before Header, computation type - static assignment and computation - TO_CHAR(sysdate, 'DDMMYYYY HH24MI') ||'.'
After that in report-export filename i added the address of my application item i.e &AI_DTTIME
but when i am trying to export my report to csv the header is coming with " TO_CHAR(sysdate,'DDMMYYYY HH24MI')_' "
Can you suggest where i am wrong?
Regards
Adi -
Reorder or hide columns when exporting
Hello,
When woking with Reports and previewing it before sent to the client, may appear the desire to change the report before sanding.
by ex, one of our customers says: "This would be a nice extension of the column hiding & reordering capability, and would help with customers' requests that their reports come with certain data "eliminated."
I work mainly with the CrstalReports "ReportClass:ReportDocument" class.
Well, is there a possibility to hide some columns (when exporting)? To reorder them?
thanks.Hello,
you could delete report fields and runtime without saving the report.
I attach code below for CS in VS2005:
//File Name: CS__Delete_Field_inproc.sln
//Created: April 4, 2008
//Author ID: FLI
//Purpose: This C# .NET sample Windows application demonstrates
// how to delete a dbfield from a report
// using unmanaged RAS.
// Note this is available without a dedicated RAS with SP2 for XI R2
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.ClientDoc;
namespace CS_Delete_Field_inproc
public partial class Form1 : Form
// CR Declarations
ReportDocument boReportDocument;
ISCDReportClientDocument boReportClientDocument;
CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject boReportObject;
public Form1()
InitializeComponent();
//Create a new ReportDocument
boReportDocument = new ReportDocument();
// load the RPT file
boReportDocument.Load("..
DeleteField.rpt");
//Access the ReportClientDocument in the ReportDocument (EROM bridge)
boReportClientDocument = boReportDocument.ReportClientDocument;
// show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument;
private void button1_Click(object sender, EventArgs e)
//find the object in the report
boReportObject = (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject) boReportClientDocument.ReportDefController.ReportDefinition.FindObjectByName("City1");;
//Delete the object from the report
boReportClientDocument.ReportDefController.ReportObjectController.Remove(boReportObject);
//show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument;
private void button2_Click(object sender, EventArgs e)
//save report with new title
boReportDocument.SaveAs("Test.rpt"); -
Extra columns when numbers doc is saved in excel format?
When i save the document i create in numbers as a compatible excel file, it adds extra columns to my sheet. If saved as a numbers file it does not add the columns only when saved to excel. I've tried everything and they always come back.
Help...thanksHi N,
You're looking at one of the differences in the models used by Numbers (multiple small tables) and Excel (one large table containing islands of date).
A Numbers table has as many columns and rows as it needs.
An Excel table has more rows and columns than are needed to accommodate its data.
Regards,
Barry -
Column filter issue in CSV format of BOXIR3
Hi ,
Currently in my infoview, supposing I am a webi document, in which I have 4 columns selected in a report from the data provider of the document (Assuming that the data provider has 10 columns). Now, when I am trying to save this document on my computer as XLS or PDF I am getting 4 columns which have been selected, which is fine. But when I am trying to save the same document on my computer as CSV I am seeing 10 columns.So can i see the 4 columns in CSV format.Is thier any way by which it can be viewed.
ThanksXLS or PDF export is Document or Report.
CSV is DataProvider, i.e., the raw data.
Sincerely,
Ted Ueda -
Problem when Exporting to CSV delimited File in SSRS
When I export my information to CSV file so its in raw data format and easily used in one of the fields I have a number that is big (for example, 140313055811). It's really just an invoice number, but when I export it to CSV and open it, it shows
something like 1.41E+11. I need to get it to display the full number instead of this. Is there a way? I tried making the textbox that its in as a number, I tried make the value area of the field =int(name of field), I tried changing it to text.
None of these do the trick.Hi grahamtribe,
After testing the issue in my local environment, I can reproduce it when open the csv file with Excel. As per my understanding, there is no width when we export the report to csv, Excel is just using the default cell sizes when we open the csv. When a number
value is wider than the default cell size, it would use Scientific format.
In this scenario, we can select all the cells in the csv file, then click Format| AutoFit Column Width to change all the cells width to fit its corresponding values in Excel level.
Besides, we can try to export to excel instead of csv. Excel format can inherit the column width in the report. So in this way, we can directly change the width to fit the values in Reporting Services level.
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Data modeler, error when exporting to csv files
hi, i have a relational model and i need to export this model to csv files, when exporting the model it errors,
displaying the following error nmessage:
Oracle SQL Developer Data Modeler Version: 2.0.0 Build: 584
Oracle SQL Developer Data Modeler Export Log
Date and Time: 2010-09-21 15:17:17
Design Name: Diagram
Model Name: CSV
Export Finished
Errors: 1
Warnings:0
<<<<< ERRORS >>>>>
java.lang.NullPointerException
the issue is a file is missing when exporting proccess is done, the file is DM_CommentsRDBMS.csv, this file contains the commens of columns.
Thanks.Hi,
I logged bug however information is not enough to locate the problem.
You can use export to reporting schema in order to get your model exported - in database in that case.
We are not going to extend "export to CSV file" functionality any further - it'll be as it is now.
Philip -
Issue while exporting to CSV Format
Hi,
Pls help me...
I have a report when i export that report to CSV format..
some duplicate rows are coming...
the two rows are exactly same and both the rows are displaying but i dont need this..
i need distinct rows..how can i achieve this..
Thanks in advanceHi,
when i checked the distinct option...error is coming..
Error
View Display Error
Error generating view. Error getting cursor in GenerateHead
Error Details
Error Codes: OAMP2OPY:ACIOA5LN
Assertion failure: getFieldPosByKey(sKey) == n at line 67 of ./project/webquerymanager/customizedsql.cpp
Maybe you are looking for
-
How do I create a new password for my Airport Extreme if I do not know the old password?
-
Crystal XI viewer will not open in Internet Explorer
I have a web site using ASP and we are using Crystal XI as our report program. We developers have created the .msi file that is distributed to our QA and Production Servers so that all users can run reports and see them in Crystal Viewer using IE us
-
Issue with redirection using Document ID
Hi All, I have a library with unique permission set, if a user who does not have access to the library tries to access a URL which has the document id (https://domainname/sites/Test1/_layouts/15/DocIdRedir.aspx?ID=UMZ2EEKCF25S-37-4), it gives the fol
-
Write-through cache error kills coherence
Hi, we have a write through cache, and when there's an error writing to the cache store, the cache dies. The first error we see is: 3.5.3/465 | Coherence(3) - 2012-07-19 07:28:35.918/34.768 Oracle Coherence GE 3.5.3/465 <Info> (thread=DistributedWrit
-
MacBook Pro not turning on and beeping?
Help. my MacBook Pro 2010 was just working fine and it randomly shut down. I felt it hot on the bottom. I googled it and said my ram was loose so I tried putting back in and it's still beeping away. I tried pulling the battery out and putting it back