Crystal 8.5 export CSV problem

Post Author: mkobulni
CA Forum: Older Products
When I export to CSV, the exported file contains the column headers in columns A thru J for every record. Why can't I export a CSV just like an .xls, with the column headings in row 1 and the data underneath? Help!
Mark

Post Author: tecboy
CA Forum: Exporting
Yes and no.....I replaced the export dll for Excel with a newer one...the newer dll removed the error message but the layout of the exported crystal reports was screwed up...so i went back to older version. I think it may have something to do with the default speadsheet or tab name that Crystal Reports creates that SP3 for Excel doesnt like...If i recall...i ran into something similar when i was on Crystal 7 and upgrade to Office 2003....

Similar Messages

  • Powershell Patching Information: Problems using Export-CSV / looping

    I've made a simple script that obtains patching information from a series of servers.
    The csv file I use to reference my servers is called patchlevels.csv and just contains some basic information.
    ServerName,OS,ServicePack,Patches,,,,,,,
    SERVER1,Server 2003 R2 Enterprise,SP2,,,,,,,,
    SERVER2,Server 2003 R2 Enterprise X64 Edition,SP2,,,,,,,,
    Yup, that's exactly as its formatted ^
    The problem I am having is updating the Patches column with a link to the server-specific htm file (I figure I can always save as xlsx within Excel to get clickable hyperlinks). I have failed multiple times over the last few hours using
    export-csv to try and update the Patches cell(s).
    Here is my script minus any failed export-csv references for clarity's sake:
    $currentPath = "$pwd\"
    $HostFileName = "patchlevels.csv"
    $CSVLoc = $currentPath + $HostFileName
    Import-Csv "$CSVLoc" | ForEach-Object {
    Write-Host "Processing..."
    Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
    $ServerName=$_.ServerName
    $ServerFile = "$ServerName.htm"
    $OS=$_.OS
    $ServicePack=$_.ServicePack
    $_.Patches = $_.Patches.replace("[","$ServerFile")
    Write-Host "Server Name: $ServerName"
    Write-Host "Operating System: $OS"
    Write-Host "Service Pack: $ServicePack"
    Write-Host "Processing Patch List"
    wmic /node:$ServerName /output:$ServerName.htm qfe list
    Write-Host "Patch List generated for $ServerName"
    Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
    Write-Host "END PROCESSING"
    I can see two things that may be wrong:
    1) Formatting of my CSV file (,,,,,,)
    2) I am not sure about the formatting of $_.Patches = $_.Patches.replace("[","$ServerFile")
    And obviously, I'm missing the export-csv commands to update the patchlevels.csv file with the htm file location (which is what this entire post is about).
    Where would I put export-csv in this code to update my original csv as the script runs?
    Thanks in advance for any help with this.
    Kind Regards,
    Stephen

    I've modified the script so that it now actually works as I want it to (more-or-less).
    I will look into using Get-Hotfix instead of WMIC to check that I am happy with the returned data.
    Modified CSV (I changed the Patch column to a known value to simplify replace operation, I couldn't figure out how to replace " "):
    ServerName,OS,ServicePack,Patches,,,,,,,
    SERVER1,Server 2003 R2 Enterprise,SP2,None,,,,,,,
    SERVER2,Server 2003 R2 Enterprise X64 Edition,SP2,None,,,,,,,
    Working code.
    $currentPath = "$pwd\"
    $HostFileName = "patchlevels.csv"
    $CSVLoc = @()
    $CSVLoc = $currentPath + $HostFileName
    Import-Csv "$CSVLoc" | ForEach-Object {
    Write-Host "Processing..."
    Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
    $ServerName=$_.ServerName
    $ServerFile = "$ServerName.htm"
    $OS=$_.OS
    $ServicePack=$_.ServicePack
    Write-Host "Server Name: $ServerName"
    Write-Host "Operating System: $OS"
    Write-Host "Service Pack: $ServicePack"
    Write-Host "Processing Patch List"
    wmic /node:$ServerName /output:$ServerFile qfe list
    Write-Host "Patch List generated for $ServerName"
    Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
    Write-Host "END DATA GATHERING"
    Write-Host "Updating CSV File"
    $update = Import-Csv "$CSVLoc"
    $update | ForEach-Object {
    $ServerName=$_.ServerName
    $ServerFile = "$ServerName.htm"
    $_.Patches = $_.Patches.replace("None",$currentpath + $ServerFile)
    $update | Export-Csv $CSVLoc -NoTypeInformation -Force
    Write-Host "OPERATION COMPLETE"
    Thanks,
    Stephen

  • JRC Export to Text like Crystal Report Designer Export

    We need to Export report to Text like Crystal Report Designer Export using JRC. Is this possible? I see export ReportExportFormat CSV, PDF and RTF only. These exports are working, But I need plain text that looks like Text export of Crystal Reports Designer. I see this working in RAS 2008. What I can do to get this with JRC. I am using Crystal Reports 2008 to design reports.
    Thanks for any help.
    Regards
    Raveendra
    Clarification

    Thank you Jitin.
    What could be solution to this problem?
    If still I want to go with JRC, Can I write some Java code to perform this export?
    I see TextExportFormatOptions and its not working.
    If I want to export automatically to text format, what other choices are there?
    Basically I need to execute report and generate text file automatically. Text file should look like Crystal Report Designer Exported Text file.
    Thank you for your time.
    Regards,
    Raveendra

  • Crystal report 10 export to MAPI does not work in Windows 7

    hi:
    I am using CR10 10.0.5.1025 in Windows 7. I tried to export a report to MAPI and got error:
    Error 2147500037 returned by function <MAPIResolveName>
    This error occurs both Office 2007 and 2003
    Any one see this error before?

    SOLUTION
    Hi, (excuse my bad english)
    The client have and use Windows 7 SP1 x64 Ultimate version .
    He use Crystal Report XI R2 Sp6
    PROBLEM:   He has a MAPI error Error when exporting PDF to MAPI.
                          He Receiving the following error message when trying to export PDF Crystal Report to MAPI.
                          Error 2147500037 returned by function <MAPIResolveName>
                          Email Client: MS Outlook 2007
    SOLUTION:   Were I found on the internet.
    Auhtor is: Andrew Whittam
    Web Link: http://www.2icsoftware.com/Support/Forum/tabid/110/aff/2/aft/1105/afv/topic/Default.aspx
    Microsoft decided to no longer support the 'Simple MAPI' email system in Windows 7. Although countless applications use it to manage emails, including 2ic Pallets, a replacement system has not been provided.
    So Windows 7 users have two options:
    Manually create email messages by copying and pasting information from the '2icEmail.txt' file that is created whenever there is an emailing error, i.e. every time you try emailing with Windows 7.
    Downgrade the '  C:\Windows\System32\Mapi32.dll  ' file to an earlier version, i.e. replace Mapi32.dll with the same file from a Windows Vista or XP computer.
    Downgrading seems to work ok. Mapi32.dll on Windows 7 has version number 1.0.2536.0, which is the same as Mapi32.dll on Windows Vista and XP. However, downgrade AT YOUR OWN RISK and check with your system administrator before making any changes.
    It is strongly recommended to rename the existing Mapi32.dll file rather than delete it so it can be restored if you find other programs do not work after downgrading. To downgrade, follow the steps below:
    Open Windows Explorer, navigate to '  C:\Windows\System32   ' (or '  C:\Windows\SysWOW64  ' for 64 bit operating systems), find Mapi32.dll and rename it to Mapi32.dll.OLD or Mapi32.dll.2ic. If you receive the message "You require permission from TrustedInstaller to make changes to this file." or some other permissions-related error, change the Owner of the file and permissions before trying again, i.e. right-click on Mapi32.dll, select Properties, Security tab, click Advanced, Owner tab, click Edit..., select "Administrators", OK the dialog boxes, again right-click on Mapi32.dll, select Properties, Security tab, click Edit, select "Administrators", allow Full Control and OK the dialog boxes. For more detail, good instructions can be found at http://helpdeskgeek.com/windows-7/w...dinstaller.
    Run the 'Email patch' from the Downloads - Utilities page of this website. This patch installs and registers the files below.
    C:\Windows\System32\Mapi32.dll
    C:\Windows\System32\MSmapi32.ocx
    Note they are only installed when missing or replacing an older version. For 64 bit operating systems these files are updated in the 'C:\Windows\SysWOW64' folder. Alternatively these files can be manually copied from a different computer and registered using Regsvr32.
    The email functionality can be checked using the 'Export/email test spreadsheet', also available on the Downloads - Utilities page. Using this spreadsheet to generate an email on Windows 7 before downgrading should result in an error message. Emailing should work after running the patch.
    RESULT:       I fixed the problem customer PC. TEST and Verification are fonctionnal.
    Steve
    Edited by: sstmartin on Mar 18, 2011 9:11 PM

  • Crystal Report with text(csv) data file, can we set it as input param? C#

    Hi,
    I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
    Can someone help me with my problem? following is the thread that I have started.
    Crystal Report with text(csv) data file, can we set it as input parameter?
    Thank you in advance.

    Looking at the original thread, you are connecting to the text file via the DAO database engine:
    "I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
    Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Create export-csv with dynamic (unknown amount) columns

    Hi,
    This is my first post, hopefully I include everything you need.  My code block is at the bottom of my post.....
    I have written a PS script that gives me the info I need, but I would like to format it differently.  Currently I import a CSV with 2 columns - username and print queue name.  The script then takes each username and looks it up in SCCM
    to find the workstations the username has logged into.  I then export to csv - this is where I would like to format it differently.  The export csv has 4 columns username, print queue name, workstation name, and details. 
    username1,printqueue,workstation1,details
    username1,printqueue,workstation2,details
    username2,printqueue,workstation1,details
    username2,printqueue,workstation2,details
    My problem is that if the user logs into 5 workstations I have 5 rows with duplicated username and print queue name.  If my next username logs into 8 workstations I have 8 rows, etc.  I would like to format the export dynamically using as many
    columns (not rows) as need.  For example
    username1, printqueue,workstation1,workstaion2, workstation3
    username2,printqueue,workstation1,workstation2, workstation3,workstation4
    I expect where I have my pscustomobject would be where I could change this - I have tried setting up a count variable and using that in my loop to be able to assign dynamic column name, I have tried using an array but still new to setting that up, maybe
    I just wasn't doing it correctly.  If anyone has any ideas that would be great.
    Thanks, Kevin
    Here is my code:
    #Declare variables
    $now = Get-date
    $date = get-date -uformat "%Y_%m_%d_%I%M%p"
    $Queues = Import-Csv "c:\Users.csv"
    $SiteName="XXX"
    $SCCMServer="your.sccm.server.com"
    $SCCMNameSpace="root\sms\site_$SiteName"
    $CSVPath1 = "c:\PrinterUsersByComputer_$date.CSV"
    #Notify user that script is starting
    Write-Host -ForegroundColor Green "Starting script"
    #Loop through each account and find any workstations from SCCM that the user has logged into
    foreach ($Queue in $Queues){
    $Queue.Username
    $WSs = Get-WmiObject -namespace $SCCMNameSpace -computer $SCCMServer -query "select Name from sms_r_system where LastLogonUserName = '$($queue.username)'" | Select-Object -ExpandProperty Name
    #Check if the workstation variable has data
    if ($WSs){
    foreach ($WS in $WSs) {
    #Check if workstation is ALIVE and if we have access to it to get OS version
    $rtn = (Test-Connection -Cn $WS -BufferSize 16 -Count 1 -Quiet)
    IF ($rtn -match 'True') {
    $OS = Get-WmiObject Win32_OperatingSystem -ComputerName $WS | Select-Object -ExpandProperty Caption -ErrorAction Stop
    #Write to screen device to show progress
    Write-Host -ForegroundColor Green "Computer information found: $WS"
    #Write to log file the username, workstation(s) logged into, and OS version
    [PSCustomObject] [Ordered] @{
    'UserName' = $Queue.Username
    'Print Queue' = $Queue.PrintQueue
    'ComputerName' = $WS
    'Operating System' = $OS
    } | Export-Csv $CSVpath1 -Append -NoTypeInformation

    Ok, just a sec, I'm not sure we are on the same page.  I don't think that isn't what I'm look for. Unless I'm missing something, your code above assume 4 workstation columns for every row.  What if there is 5 or 8.  My current output
    from the full script is this (based on checking if PC is pingable, whether I'm denied the WMI query, etc)
    UserName
    Print Queue
    ComputerName
    Operating System
    User1
    PQ1
    Computer1
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer2
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer3
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer4
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer5
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer6
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer7
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer8
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer9
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer10
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer11
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer12
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer13
    No device name to query
    User1
    PQ1
    Computer14
    Microsoft Windows 7 Enterprise 
    User2
    PQ2
    Computer15
    Microsoft Windows 7 Enterprise 
    User3
    PQ3
    Computer1
    Microsoft Windows 7 Enterprise 
    User4
    PQ4
    Computer2
    Access denied connecting to device.    No access to it: Computer2
    What I would really like is this, getting rid of the OS name for now:
    User1
    PQ1
    Computer1
    Computer2
    Computer3
    Computer4
    Computer5
    User2
    PQ3
    Computer1
    User3
    PQ13
    Computer1
    Computer2
    I would just like to condense the workstations to columns instead of 1 workstation per row and be able to expand the # of columns required based on the amount of workstations in $WSs -

  • How to add SaveFileDialog to PowerShell Get-ADUser Export-CSV

    Hi,
    I am having a bit of difficulties with getting the SaveFileDialog to work when I use the Get-ADUser export-CSV.
    Current code:
    $handler_Output_Click=
    $User = Get-Aduser $textBox1.Text -Properties DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Select DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Export-CSV C:\temp\test.csv -NoTypeInformation ';' -encoding utf8
    $richTextBox1.Text = "A file 'test.csv' has been created to C:\temp\ based on the user: $($textBox1.Text)"
    Here a specific filename is already defined and I have to edit the code each time I want a different filename.
    It would be perfect if I could implement the SaveFileDialog box so I have the ability to name the file before saving and possibly even have the option to select the file type (among .CSV and All files).
    This it the export/output button itself:
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 502
    $System_Drawing_Point.Y = 38
    $Output.Location = $System_Drawing_Point
    $Output.Name = "Output"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 23
    $System_Drawing_Size.Width = 85
    $Output.Size = $System_Drawing_Size
    $Output.TabIndex = 2
    $Output.Text = "Export as file"
    $Output.UseVisualStyleBackColor = $True
    $Output.add_Click($handler_Output_Click)
    # $form1.AcceptButton = $Output
    $Output.DataBindings.DefaultDataSourceUpdateMode = 0
    $form1.Controls.Add($Output)
    And in the beginning of my script I also have defined the following:
    [System.Windows.Forms.Application]::EnableVisualStyles();
    [reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null
    [reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null
    [reflection.assembly]::loadwithpartialname("System.Windows.Forms.SaveFileDialog") | Out-Null
    And also:
    $Output = New-Object System.Windows.Forms.Button
    Any ideas how can I implement the SaveFileDialog so when I press the "Export as file" button the PowerShell command "Get-Aduser $textBox1.Text -Properties DisplayName,sAMAc..." is ran and I can choose the file name from a pop-up
    dialog box where to save the file and also put a filename? Currently I have to edit the code in order to assign a new file name (or go rename the file from that location).
    Thank you in advance,
    Henri
    EDIT:
    I know that the below is the answer to the SaveFileDialog, however I cannot imagine how I could implement it to my script into the "Get-Aduser $textBox1.Text -Properties a,b,c,d | select a,b,c,d | Export-CSV C:\temp\test.csv" cmdlet.
    Function Get-SaveFile($initialDirectory)
    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
    Out-Null
    $SaveFileDialog = New-Object System.Windows.Forms.SaveFileDialog
    $SaveFileDialog.initialDirectory = $initialDirectory
    $SaveFileDialog.filter = "All files (*.*)| *.*"
    $SaveFileDialog.ShowDialog() | Out-Null
    $SaveFileDialog.filename

    Just run the dialog before exporting the file.  Why is that a problem?
    \_(ツ)_/
    It works now! I made some modifications and it works. Thank you very much for the advice.
    $handler_Output_Click={
    Add-Type -AssemblyName System.Windows.Forms
    $SaveAs1 = New-Object System.Windows.Forms.SaveFileDialog
    $SaveAs1.Filter = "CSV Files (*.csv)|*.csv|Text Files (*.txt)|*.txt|Excel Worksheet (*.xls)|*.xls|All Files (*.*)|*.*"
    $SaveAs1.SupportMultiDottedExtensions = $true;
    $SaveAs1.InitialDirectory = "C:\temp\"
    if($SaveAs1.ShowDialog() -eq 'Ok'){
    $User = Get-Aduser $textBox1.Text -Properties DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Select DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Export-CSV $($SaveAs1.filename) -NoTypeInformation ';' -Encoding UTF8
    $richTextBox1.Text = "A file $($SaveAs1.filename) has been created based on the user: $($textBox1.Text)"

  • Export CSV Cmdlet goes to infinite loop

    I'm trying to aggregate data from various CSV's into one using the following line of code
    “ ls -n *.csv | %{ ipcsv $_} | epcsv allinone.csv -NoTypeInformation “ 
    It worked fine until I changed the exported csv name to OneWorldFile.csv. It looks like PS lands into an infinite loop and appends the data into the CSV. I’ll have to eventually halt the process.
    “ ls -n *.csv | %{ ipcsv $_} | epcsv OneWorldFile.csv -NoTypeInformation “
    Here is the screenshot for your verification : http://note.io/1pNoee3. Is there any reason for this behaviour? Did I miss something?
    Thank you in advance for your reply.
    Vimal.

    Thank you, Noah.  I've understood what causes this behaviour -> Parallel Processing.
    I did get an interesting reply from powershell.org forum (http://bit.ly/Tzoy3R) and the problem sorts out if pipeline is not used. Thanks to Mike F Robbins.
    Import-Csv-Path(Get-ChildItem-Name*.csv)|Export-Csv-Path .\OneWorldFile.csv-NoTypeInformation
     

  • Need Crystal Reports Excel Export Compatibility Patch

    I seached the threads and found that the person that started this thread:
    Crystal Reports.NET Export to Excel
    has the same issue/needs that I do.  We have over 1000 crystal reports all written in 8.5.  We MUST have the ability to export them accurately to Excel in the clean manner in which they were exported back in version 8.5.  Apparently (for whatever reason) you guys have gone away from the old methodology of exporting to Excel, however I read that there is a compatibility patch that can be provided that would allow me to be able to export the reports to excel the way it use to work.  What do I need to do to aquire this patch?  Thanks.
    Steve

    Thanks Don for you reply.  I noticed you said this was low priority for him, but to us it's a major priority as I said, one of our biggest clients is very upset about it and we need it fixed asap. 
    I understand what you are saying when you say that we "had 10 years to update it."  However, please understand from our vantage point.  We didn't upgrade b/c you're user license agreements were so expensive for us until you recently reworked it so as to be affordable.  So we couldn't upgrade until recently.   So now we "upgraded" to a newer version of Crystal which usually means things are enhanced and work better.  However, in this case the newer version is causing us major problems in an area that use to work great.  So we're finding it hard to blame ourselves for this.
    I guess I am ignorant as to why SAP would go to an entirely different exporting methodology when the old methodology was working so well. 
    Anyway, thanks again and anything you can do to speed up the process of getting us a patch would be greatly appreciated.
    Steve

  • Export CSV doesn't work with several line

    Hello!
    I want to know if theire are a limit for export a database table in export CSV.
    Because for few report the export CSV doesn't work.
    Regards,
    Greg

    Your problem is probably the value of the "Max Row Count" element in the "Report Attributes". If the value is empty, you will be able to export only a limited number of records (500?). Set this value to a bigger number that exceeds the number of rows you will ever need to export and the export will than work as you expect.
    Denes Kubicek

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • Export-csv output maximum row size

    Hi all. May I know the maximum row size that can output to .csv using 'export-csv'??

    There's no limit on writing to a CSV file.
    You can try:
    # max rows to export to CSV:
    $i=0
    While ($true) { #Forever
    $i++
    $i
    "Some text" | Export-Csv -Path .\test12.csv -Append -NoTypeInformation
    until you run out of disk space, which may take a while. A million lines using the above script makes a 5 BM file..
    Now reading it back is an entirely different story. Try
    Delimit..
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • PDF Encryption. How can I encrypt a PDF via the Crystal Report's Export?

    Hello,
    Is there a way to encrypt PDF files created via Crystal Report's export feature? We need to have such PDFs encrypted so that end users cannot copy information from them (files would be read only).
    I have researched in these Forumns and the old Business Objects' forums but could not find information on the topic. Crystal Report's online help does not provide any information either.
    Any help is greatly appreciated
    Lucio Gayosso
    [CRYSTOB: CA PLEX/Crystal Reports Interfacing and CR FAQ.|http://www.angelfire.com/nc/gayosso/crystob.html]
    [GAYOSSONET|http://www.gayossonet.com]

    Jason,
    Will do. I did not know about these features, this is the 1st day I am in these forums.
    Have a great day,
    Lucio Gayosso
    [CRYSTOB: CA PLEX/Crystal Reports Interfacing and CR FAQ.|http://www.angelfire.com/nc/gayosso/crystob.html]
    [GAYOSSONET|http://www.gayossonet.com]

  • Again: Using Crystal Report to export excel sheet.

    Morning every one, first Iu2019d like to apologize for my last question see Using Crystal Report to export excel sheet. Itu2019s pretty hard to understand and wastes your precious time. Now here is a new one hopefully it will do myself a lot of help:)
    First, we have a table called HOURLY_PORTUTIL in the Database:
    Column Name...........Data Type  
    STARTTIME ................DATE
    CIRCLE.......................VARCHAR2
    SERVICENAME...........VARCHAR2
    PORTUTIL....................NUMBER
    The data in this table looks like:
    9/25/2008 00:00:00 AM...AP...(456)...0.01
    9/25/2008 01:00:00 AM...AP...(456)...0.04
    9/25/2008 02:00:00 AM...AP...(456)...5.04
    9/25/2008 12:00:00 PM...AP...(456)...0.02
    9/25/2008 00:00:00 AM...AP...AL-MOD...0.01
    9/25/2008 01:00:00 AM...AP...AL-MOD...0.04
    9/25/2008 02:00:00 AM...AP...AL-MOD...0.04
    9/25/2008 12:00:00 PM...AP...AL-MOD...0.02
    9/26/2008 00:00:00 AM...AP...(456)...1.01
    9/26/2008 01:00:00 AM...AP...(456)...0.34
    9/26/2008 02:00:00 AM...AP...(456)...5.24
    9/26/2008 12:00:00 PM...AP...(456)...7.72
    9/26/2008 00:00:00 AM...AP...AL-MOD...12.0
    9/26/2008 01:00:00 AM...AP...AL-MOD...0.23
    9/26/2008 02:00:00 AM...AP...AL-MOD...0.44
    9/26/2008 12:00:00 PM...AP...AL-MOD...8.11
    9/25/2008 00:00:00 AM...Delhi...(456)...1.01
    9/25/2008 01:00:00 AM...Delhi...(456)...2.04
    9/25/2008 02:00:00 AM...Delhi...(456)...6.04
    9/25/2008 12:00:00 PM...Delhi...(456)...7.02
    Then we have a Cross-Table:
    Columns:
    .............HOURLY_PORTUTIL.SERVICENAME
    Rows:
    ............HOURLY_PORTUTIL.CIRCLE
    ............HOURLY_PORTUTIL.STARTTIME
    ............@hourly
    Summarized Fields:
    ..............................Sum HOURLY_PORTUTIL.PORTUTIL
    The Formula @hourly converts, say, '9/25/2008 01:00:00 AM' to '01:00-02:00'.
    The above all is the information of our Cross-Table configuration, but the outcome is not what we want. I find that this forum doesn't want the user to post image, so I post the actually outcome and the outcome we want in my Picasa.
    Actually outcome:
    [http://picasaweb.google.com/enel.guo/ForWork#5288743968250408770]
    What we want:
    [http://picasaweb.google.com/enel.guo/ForWork#5288743974292750610]
    I know that the outcome looks good enough, but our customers don't think so. They want export the report to Excel sheet and have every row with exact CIRCLE and STARTTIME.
    Thanks again guys:)

    Hi  Ashwini Yadav,
    Thanks for your reply:)
    I'm afraid that your answer is not perfectly right. Again I'm sorry for my vague description. The suggestion you gave us is already adopted. The total and grand total part disappeared but we still can't get what we want.
    Please have a look at the new image link below, Hopefully it will give you a clear picture of what's going on:)
    Cross-table:
    [http://picasaweb.google.com/enel.guo/ForWork#5289122850514299506]
    Cross-Table configuration:
    [http://picasaweb.google.com/enel.guo/ForWork#5289123604007267826]
    Cross-Table configuration::
    [http://picasaweb.google.com/enel.guo/ForWork#5289122854967734466]
    The original output:
    [http://picasaweb.google.com/enel.guo/ForWork#5289120017105336914]
    The output we want:
    [http://picasaweb.google.com/enel.guo/ForWork#5289120018508824882]
    Edited by: Yu-Lin Liang on Jan 9, 2009 3:51 AM

Maybe you are looking for

  • Error while activating Transformation CO_OM_WBS_3

    Hi everybody, i get the following error message while activating the transformation for  CO_OM_WBS_3 in Dev Error while activating transformation Message no. RSTRAN510 Error when writing routines i checked the routine for co_om_wbs_3 the syntex was c

  • Index - How to create an index for multiple InDesign files?

    Hi everyone, I'm using InDesign CS2 to create a 250 page catalogue. Most of it is finished now, and I've come to creating the index. The catalogue is spread over about 10 InDesign files. How do I create an index for this? No paragraph styles were set

  • 999 generation for errors in ISA/GS envelopes

    Hi All, We are testing 999 functionality; 999 is not generated if there is any error in the envelopes(like incorrect Group count). How to enable it? Or do we have to go for TA1 to get this functionality? This is for X12 HIPAA transaction. Thanks, Kat

  • My Classes folder

    Hi, This is my first day working on Jdeveloper. I have configured the database and create anoe dummy page. The page was succesfully created and run succesfully, but when i tried to build the project (OAWorkspace1), myclasses folder not created. Pleas

  • Can someone translate this short kernel panic report for me?

    I got this after my internet suddenly went down (Safari stopped loading pages, but my Adium messenger was still working). And then, I think, the internet for my area went down (snow storm) and I'm hoping this kernel panic had something to do with tha