Crystal Report Viewer | Issue Default Exporting to Excel

hi,
        if any 1 of the column is empty in the report then when exported to the excel the null valued column value is printed by the next column.
For example if i have  columns such as A,B,C and B has null values, then B is replaced by c.
Is this a bug?
Thanks and regards,
Dhinesh B

Editable RTF, because of the static nature of header and footer information, has restrictions on field display mapping Crystal page numbering to Word page numbering.
RTF export does not, since header and footer information is not placed in header and footer, but in the body itself as static text.
Sincerely,
Ted Ueda

Similar Messages

  • Crystal Reports prompt issue on export: "The report you requested requires further information"

    I have searched through forums for a solution but none seem to work for me.
    I have an ASP Webform/MySql application which displays Crystal Reports.
    The ones which do not require a user to enter a parameter display fine and I am able to click on export on the CR toolbar and download, e.g. .pdf format.
    On the report that require a user to enter a parameter, the report renders fine but when I click on the export button, i get the prompt:
    "The report you requested requires further information"
    asking for DB login credentials. How can I avoid this?
    My Code:
    Aspx page:
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <div>
              <CR:CrystalReportViewer Width="960px" ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
    </div>
    protected void Page_Load(object sender, EventArgs e)
             if (Request.QueryString["report"] != null)
                    string reportToGet = Convert.ToString(Request.QueryString["report"]);
                    switch (reportToGet)
                            case "payslip":
                            PaySlip();
                            break;
                            case "pastpayslip":
                            PanelPastPaySlip.Visible = true;
                            break;  
                           default:
                           break;
    protected void btnSearch_Click(object sender, EventArgs e)
          if (txtDate.Text != null || txtDate.Text != string.Empty)
          if (DateTime.TryParseExact(txtDate.Text, "yyyy-MM-dd", CultureInfo.InvariantCulture,
          DateTimeStyles.None, out date))
          PastPaySlip();
    private void PastPaySlip()
                // Some code....
                PayMasterDataSetTableAdapters.pastpayslipcasualviewTableAdapter ta =
                    new PayMasterDataSetTableAdapters.pastpayslipcasualviewTableAdapter();
                PayMasterDataSet.pastpayslipcasualviewDataTable dt = new PayMasterDataSet.pastpayslipcasualviewDataTable();
                ta.FillBy(dt, userId, businessId);
                cReport = new ReportDocument();
                string reportPath = Server.MapPath("~/Views/CasualLabour/Reports/PastPaySlip.rpt");
                cReport.Load(reportPath);
                cReport.SetDataSource((DataTable)dt);
                cReport.SetParameterValue("Date", date);
                cReport.SetDatabaseLogon("userID", "password", "server", "database");
                CrystalReportViewer1.ReportSource = cReport;
                CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
    I am using CR V. 13.0.9 and VS 2013 Update 2

    This is because almost any action on the viewer result sin a postback. This includes paging, zooming, drilling exporting and printing. E.g.; you will have to place the report in session. See the following KB for how to:
    1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal report not able to export in EXCEL file in windows 7

    Hi Expert,
    I have an Form, in which there is a button print.  when I press Print button Crystal report open with data. upto here is fine with any operating system (OS).
    When I press Export report in XP it working fine, ShowDialog is show on screen where I have to save this file. but When I run as application on windows 7 I got  below as error
    Current thread must be set to single thread apartment (STA) mode before OLE calls can be made .......
    rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
                rptView.ReportSource = rptDoc
                rptView.Show()
                Dim oFrm As New System.Windows.Forms.Form
                rptView.DisplayGroupTree = False
                rptView.Dock = System.Windows.Forms.DockStyle.Fill
                rptView.Location = New System.Drawing.Point(0, 0)
                oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
                oFrm.Controls.Add(rptView)
                oFrm.Name = "Report Viewer"
                oFrm.Text = "Report Viewer"
                oFrm.ResumeLayout(False)
                oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
                oFrm.TopMost = True
                oFrm.ShowDialog()
            Catch ex As Exception
                objMain.objApplication.MessageBox(ex.Message)
    Can you please tell me why is I am not able to export report on windows 7 thru Crystal report
    Thanks
    Kevin

    Hi Kevin,
    You may check: Error in Export to PDF for crystal reports
    Thanks,
    Gordon

  • Pass along Crystal Report file name on export to Excel

    Hello, I am using Crystal Reports 10 and create numerous Crystal reports, all of which end up being exported out to Excel.  Is there a way to export the name of the Report or its file name out to Excel as well?  I work with so many reports that I can't always trace back the Excel version of the report back to its Crystal report roots.
    Thank you.

    Hi
    In field explorer  Use Special Field called File Path and Name drag and place it  in Report Header
    If you want just the report Name then use Report Title.
    Cheers
    Rahul

  • IE11 and Crystal Reports Viewer issue

    We have a Delphi application which launches Crystal Reports through a Java Web Module.  The Delphi application gives users the option to view a single report or multiple reports (Crystal Reports).  In previous versions of IE, everything worked fine.   However, when we launch multiple reports in IE11, the first report loads properly but the other reports do not open the report in the new window.  It opens our home page.  So, first pop-up window shows the report1 without issues.  Other pop-up windows for report2 – reportN, shows our home page instead of the requested report.   Is there a fix for this issue?

    Hi, 
    This is SAP Business one reporting and printing forum.
    Please find correct forum and repost above query to get quick assistance. 
    Please close this thread here with helpful answer. 
    Thanks
    Nithi

  • Crystal Report Viewer issues

    Hi, I'm starting with CR viewer for CR 2008 in VS 2008.
    I have 3 problems. Look like easy problems, buy during the morning, I didn't found any solution.
    3 questions:
    - I want CR viewer  like "dock = fill". viewer size 100% height and 100% width. I set BestFitPage to true and it doesn't work. I set BestFitPage to false, height and width to 100% and it doesn't work.
    - Size of the viewer is the same of the page container. If I change manually size of the page, CR viewer changes too. I don't know how can I do this.
    - When height and/or width of the report is greater than page, vertical scroll bar and/ horizontal scroll bar shows.
    Wher's the tip??
    Thanks.

    Hi,
    Do you see this issue in the CR designer? If so, please post to the Report Design forum:
    SAP Crystal Reports
    Note that if the issue exists in the CR designer, the issue will exist at runtime also and needs to be resolved in the designer 1st.
    Hope this will help!!
    Regards,
    Amit

  • Crystal Reports XI: formatting and exporting to Excel (VB 6)

    Hi.
    I have a VERY simple report that all I want it to do is display the numbers from a table EXACTLY as formatted and be able to export them to Excel, as NUMBER (not STRINGS).
    Example:
    My fields may contains the following values in a single column:
    45.02
    0.04454
    215
    And I want them to be displayed as entered in the source table.
    Initially, to maintain the formatting, I set the field's data type to a STRING.
    The problem is that when I then export the data to Excel, all the numerical values are treated as TEXT and we need to "Convert Text to Numbers".
    When I changed the field's data type to a DOUBLE, the data in the table is correct, but the report formats all the numbers in one way.  I want to be able to retain the formatting of the field (as-is) but have them exported as numbers, rather than text.
    Can this be done?
    Please advise!
    Thanks.
    AK

    I actuallly found my answer elsewhere (http://www.tek-tips.com/viewthread.cfm?qid=1235276&page=4).
    The Decimal formattion (x=2) for the fields can be set as follows:
    If CurrentFieldValue = Int(CurrentFieldValue) Then 0Else If CurrentFieldValue * 10 = Int(CurrentFieldValue * 10) Then 1
    Else If CurrentFieldValue * 100 = Int(CurrentFieldValue * 100) Then 2
    Else If CurrentFieldValue * 1000 = Int(CurrentFieldValue * 1000) Then 3
    Else If CurrentFieldValue * 10000 = Int(CurrentFieldValue * 10000) Then 4
    Else If CurrentFieldValue * 100000 = Int(CurrentFieldValue * 100000) Then 5
    Else If CurrentFieldValue * 1000000 = Int(CurrentFieldValue * 1000000) Then 6
    ElseDefaultAttribute
    Basically - this works.
    Hope this helps someone else!
    Thanks.
    AK

  • Crystal Reports Formatting issues when exporting to Word Editable document

    Version: CR XI, I am editing a document exported from CR to Word Editable
    When exporting to a Word Editable (.rtf) document the formatting changes.  For example: lines that were drawn in the report do not come across, there  is a tab in front of each line and a carriage return at the end of each line and spacing and justification formatting are not the same.  Is there a way to export to Word Editable and keep the formatting integrity? This report was developed by a third party but I can edit it if needed.

    Pages 5 is, as an early reviewer put it, "an unmitigated disaster." Not only does it lack some 100 feautres that are present in Pages 09 (4.3), it is also VERY buggy, A quick look through these discussions will reveal a painful litany of data corruption, files that cannot be opened, lost data, and other anomalies. Links do not export reliably to PDFs, and, as you've discovered, export to .docx format is unreliable. Sadly, the best advice is to trash Pages 5.1 and use Pages 4.3 or — yes, it's come to that — Word instead.

  • Crystal Report Viewer Export options

    In the toolbar of Crystal Report Viewer, there is export button, click it it will pop-up the file dialog for you to choose the export format and dist file location.
    the default(first choice) export format in CR2008 is ".rpt", , how can I set the default export format to ".pdf"?
    Thanks for help.

    Remove the viewer Export button from the toolstrip
    Add a new Export button
    On click event of the new Export button, present the user with custom export form
    Use the following sample code
    Private Sub frmReportPreview_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim ts As ToolStrip       
    Dim currentExportButton As ToolStripButton       
    Dim newExportButton As ToolStripButton
    ' Replace the export button with our own export button so we can handle the event ourselves
    ts = DirectCast(CRViewer.Controls(4), ToolStrip)       
    currentExportButton = DirectCast(ts.Items(0), ToolStripButton)
    ts.Items.Remove(currentExportButton)       
    newExportButton = New ToolStripButton("", My.Resources.Export, AddressOf ExportButton_Click)
    newExportButton.ToolTipText = "Export report to disk"       
    ts.Items.Insert(0, newExportButton)
    End Sub
    Create windows form 'frmReportExport' that contains the export file types and their order, then use the following code:
    Private Sub ExportButton_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim frmExport As frmReportExport
    ' Allow the user to specify options such as the name of the file and format before exporting.
    frmExport = New frmReportExport       
    frmExport.Report = Report       
    frmExport.ShowDialog()
    End Sub
    Then use the code below to run the export from the custom report export windows form.
    Report.ExportToDisk(exportFormat, fileExport.SelectedFilename)
    Please do note. This is an unsupported, undocumented hack of the viewer. This may work for your current app, but you risk that the same approach may not work in future versions of the viewer...
    Ludek

  • Picture not showing in Crystal Report Viewer

    We have an asp.net web solution that shows Crystal Reports using the crystal report viewer and also exporting the reports to PDF, Word and Excel The reports are working fine, but when showing the reports in the crystal report viewer the picture in the report is not shown (see crystalviewer.png), but when exporting to PDF, Word, Excel and so on, this picture is shown (PDF.png).
    Can you check if this is an error in crystal report ? or is there some kinda security issue?
    The report is not attached to this document, because the file type is not allowed.
    We have even tried to install the latest version (13.0.9.1312) from your homepage.
    This version also has the problem. http://scn.sap.com/docs/DOC-7824 Exporting crystal report
    report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, Page.Title)
    CrystalReportViewer1.ReportSource = report

    Please provide more info on:
    We use register to this page.
    How is that done? Or, what is it that you do in the registry to manage the CR viewer?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to change default Export Format Type in Crystal Report Viewer

    We are coding in VB.NET 2005 using the CR2008 SP1 .NET objects.
    The Crystal Report Viewer, when displayed, defaults the export type as .rpt (Crystal Reports).
    We distribute our .NET application to our customers.  99% of the time, this .rpt format is useless to our customers as they do not have crystal reports developer.  They usually export to a .pdf or .xls format.  Is there a way to default this export option to something other than .rpt?
    Thank you.

    Yes, that's as much as I figured.
    With the Crystal for .NET methods, the CrystalDecisions.CrystalReports.Engine's reportdocument object has an ExportToDisk method.  We wanted to use this (as we used something similar with the RDC) to prompt the user to export.  However, the reportdocument's exporttodisk method does not have an argument that allows for Prompting the user (true/false) like the RDC's export did.  You have to actually know ahead of time the type of export the user wants as well as the filename.  Well, we do not, and therefore, want the user to be able to select the type of export they want as well as enter their own filename.  We want the Crystal methods to prompt for this.  Since we are unable to, we've had to resort to declaring a reportviewer object and setting the viewer's reportsource = to the reportdocument.  We then use the ExportReport() method which defaults to .rpt (which none of our end users have Crystal Developer).  This is why we want to know if there is a way to reset the default export method to something more common (such as .pdf or .xls).  Is there a way to change the reportdocument's file type in order to default the export type?  Just trying to come up with some sort of workaround...
    Thanks

  • Problem in crystal report viewer control's toolbar "export"button using SSL

    Hi,
    I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
    u201CInternet Explorer cannot download file from server.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
    Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
    Anyone can help ???
    Thanks

    In Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
    Default is to have that option checked. 
    It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later).  So more recent versions of IE implemented that option setting.
    How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type.  So the application tries to open a directory path to a non-existing file.
    Issue is specific to IE, and it's not something you can control via the SDK.
    Sincerely,
    Ted Ueda

  • Error With Export/Print from Crystal Report Viewer

    Hello there,
    I've searched through the web and SAP discussion boards with not much luck with this issue.
    After working through this for some days now I've decided to look here for help.
    Environment:
    I have created a web Crystal Report viewer application(Developed with SBOP BI Platform 4.0 SP06 .NET SDK Runtime) that communicates with a managed Cyrstal Server 2011 SP4 (Product 14.0)
    I am able to connect and authenticate with the server, retrieve a token for communication and display reports in the Crystal report Viewer successfully.
    Problem:
    When I attempt to export, I receive the prompt to select format and pages.
    When I click export after selections most times I receive an error with the text
    Unable to cast COM object of type 'System.__ComObject' to interface type 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74EEBC42-6C5D-11D3-9172-00902741EE7C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
    Other times the page simply refreshes on export.
    When I click to print, no print dialog is displayed the page always refreshes and no error is displayed.
    No Print or Export document is ever created.
    As many print/export issues seems to be related, I'm guessing this two issues are as well.
    Notes:
    I am utilizing the ReportClientDocument model
    I am storing this in session to use as the crystal report viewer report source on postbacks
    I am assigning a subset of export formats to the crystal report viewer
    I am setting particular parameters as well on the report source
    At this point I would appreciate every assistance I may receive on this issue
    Thanks in advance,
    Below is the pertinent code
    Code:
    <aspx>
       <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
       AutoDataBind="true" EnableDatabaseLogonPrompt="False"
       BestFitPage="False" ReuseParameterValuesOnRefresh="True"
      CssClass="reportFrame" Height="1000px" Width="1100px" EnableDrillDown="False"
      ToolPanelView="None" PrintMode="Pdf"/>
    <Codebehind>
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using CrystalDecisions.Enterprise;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.CommonObjectModel;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.Shared;
    namespace ClassicInternalReportPage
        public partial class Reports : System.Web.UI.Page
            protected override void OnInit(EventArgs e)
                base.OnInit(e);
                if (!String.IsNullOrEmpty(Convert.ToString(Session["LogonToken"])) && !IsPostBack)
                    SessionMgr sessionMgr = new SessionMgr();
                    EnterpriseSession enterpriseSession = sessionMgr.LogonWithToken(Session["LogonToken"].ToString());
                    EnterpriseService reportService = enterpriseSession.GetService("RASReportFactory");
                    InfoStore infoStore = new InfoStore(enterpriseSession.GetService("InfoStore"));
                    if (reportService != null)
                        string queryString = String.Format("Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
                           + "Where SI_PROGID='CrystalEnterprise.Report' "
                           + "And SI_ID = {0} "
                           + "And SI_INSTANCE = 0", Request.QueryString["rId"]);
                        InfoObjects infoObjects = infoStore.Query(queryString);
                        ReportAppFactory reportFactory = (ReportAppFactory)reportService.Interface;
                        if (infoObjects != null && infoObjects.Count > 0)
                            ISCDReportClientDocument reportSource = reportFactory.OpenDocument(infoObjects[1].ID, 0);
                            Session["ReportClDocument"] = AssignReportParameters(reportSource) ? reportSource : null;
                            CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
                            CrystalReportViewer1.DataBind();
                //Viewer options
                // Don't enable prompting for Live and Custom
                CrystalReportViewer1.EnableParameterPrompt = !(Request.QueryString["t"] == "1" || Request.QueryString["t"] == "4");
                CrystalReportViewer1.HasToggleParameterPanelButton = CrystalReportViewer1.EnableParameterPrompt;
                CrystalReportViewer1.AllowedExportFormats = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
            protected void Page_Load(object sender, EventArgs e)
                if (IsPostBack && CrystalReportViewer1.ReportSource == null)
                    CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
                    CrystalReportViewer1.DataBind();
            private bool AssignReportParameters(ISCDReportClientDocument reportSource)
                bool success = true;
                if (Request.QueryString["t"] == "1" || Request.QueryString["t"] == "2" || Request.QueryString["t"] == "4" )
                    reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "STORE", Session["storeParam"]);
                    if (Request.QueryString["t"] == "2")
                        reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "FromDate", Request.QueryString["fromdate"]);
                        reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "ToDate", Request.QueryString["todate"]);
                else if (Request.QueryString["t"] == "3")
                    reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "SKU", Request.QueryString["sku"]);
                else
                    //Unknown report type alert
                    success = false;
                return success;

    Thanks Don for your response,
    I'm new to the SCN spaces and my content has been moved a couple of times already.
    In response to your questions
    The runtime is installed on the web application server, if by that you mean the machine hosting the created .NET SDK application.
    My question was whether it was also required on the Crystal Server 2011 (I.E. the main enterprise server with CMS and Report management and I guess RAS and all that). I figured this would remain untouched and queries would simply be made against it to retrieve/view reports e.t.c
    If install of the SDK on Crystal Server 2011 is indeed required should I expect any interruption to any of the core services after a restart. I.E. I'm hoping that none of the SDK objects would interfere with the existing server objects (in SAP Business Objects)Reason I ask is I note that much of the SDK install directories are similar to the existing Crystal Enterprise Server 2011 (Product 14.0.0)
    Is this temp folder to be manually created/configured or is it created by the application automatically to perform tasks. Or are you referring to the default C:\Windows\Temp directory and so saying that the application would try to use this for print and export tasks?Once I'm sure which I'd give the app pool user permission
    Printing is to be client side but I figured by default (with the Crystal Report Viewer) it would simply pool and print from the user's printer. This is how it works with the previously used URL reporting approach (viewrpt.cwr). Therefore a user can print the document from wherever they are with their own printer.We don't intend on printing from the server machine, but are you suggesting that a printer must be installed on server (which one web or enterprise server) for any client side printing to work.
    App pool is running in 32 bit mode
    Initially didn't get anything useful from fiddler but I'd try and look closer on your suggestion.
    It's also possible that some of my questions are a misunderstanding of APP vs RAS vs WEB, so please feel free to clarify. Currently I see the Web server as simply the created .NET SDK Application and RAS (Crystal Server 2011 e.t.c) as the existing fully established Application server which I simply pool for information.
    Thank you for your patience and advice,

  • Get blank report in Crystal Report Viewer when exporting to PDF

    I have an application that creates reports in the CrystalReportViewer while at the same time exports a PDF of that report.  I am having a problem in which
    performing the export causes the report in the ReportViewer and the PDF report to be blank. They have the header and column labels but no data.  If I
    comment out the Me.Export(reportExportOptions) line at the end of the exportPDFReport method the report in the ReportViewer works fine, displaying
    data on the report. 
    I have other forms that perfrom this same type of function on different reports and work fine.  In fact they use the same exportPDFReport method.  This leads
    me to believe that a difference in the reports may be causing the problem.  But I can't figure out why.
    I am using .net 3.5 with Crystal Reports 2008 (CR2008) full edition in Visual Studio 2008.  Although the reports that work were probably created using
    VS 2005 and the VS 2005 edition of Crystal, and which have since been updated to CR2008.
    Has anyone else experienced this problem?  If so, how did you resolve it?
    Thanks for any help!
    Code is below
    Public Class frmAgedReceivables
      Inherits CustomWinControls.CustomForm
      Implements ICustomForm
    ... other properties and methods
    Public Sub CreateAgedPremiumsReport()
        Dim billingType As String = "Direct"
        Dim reportType As String = String.Empty
        Dim frmDateProcess As New frmEnterProcessMonth()
        frmDateProcess.pikMonthYear.Value = TurmsController.CodeEffectiveDate
        frmDateProcess.lblMessage.Text = "Enter Processing Date"
        If frmDateProcess.ShowDialog(Me) = Windows.Forms.DialogResult.Cancel Then
          Return
        End If
        Me.InForceStripStatusLabel1.Text = "Creating Report"
        Me.Refresh()
        Dim report As New AgedReceivablesReport()
        report.Load(report.ReportPathAndName)
        Me.Refresh()
        Dim reportParmsArrayList As ArrayList = New ArrayList()
        reportParmsArrayList.Add(report.ParameterFields.Item(0).Name)
        reportParmsArrayList.Add(frmDateProcess.pikMonthYear.Value)
        reportParmsArrayList.Add(report.ParameterFields.Item(1).Name)
        If AgencyBillRadioButton.Checked Then
          billingType = "Agency"
        End If
        reportParmsArrayList.Add(billingType)
        reportParmsArrayList.Add(report.ParameterFields.Item(2).Name)
        reportParmsArrayList.Add(TurmsController.CurrentUser.UserName.Value)
        reportParmsArrayList.Add(report.ParameterFields.Item(3).Name)
        If NAICCheckBox.Checked Then
          reportType = "NAIC"
        End If
        reportParmsArrayList.Add(reportType)
        Dim parms As String() = {frmDateProcess.pikMonthYear.Value, billingType, reportType}
        Me.InForceStripStatusLabel1.Text = "Loading Data"
        Me.Refresh()
        report.getData(parms)
        Dim reportParms() = reportParmsArrayList.ToArray
        report.loadParameters(reportParms)
        report.ExportFileName = Microsoft.VisualBasic.Format(frmDateProcess.pikMonthYear.Value, "yyyyMM") + report.GetType.Name
        report.ExportFormat = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
        report.exportPDFReport()
        Me.CrystalReportViewer1.ReportSource = report
      End Sub
    End Class  
    Public MustInherit Class TurmsReport
      Inherits CrystalDecisions.CrystalReports.Engine.ReportDocument
    Implements _ITurmsReport
    ... other properties and methods
        Public Sub exportPDFReport() Implements _ITurmsReport.exportPDFReport
          Dim reportExportOptions As New ExportOptions
          Dim reportDiskFileDestinationOptions As New DiskFileDestinationOptions
          Dim reportFormatTypeOptions As New PdfRtfWordFormatOptions
          reportDiskFileDestinationOptions.DiskFileName = getExportPathAndName(ExportType.PDF)
          If Me.UsePageRange _
          AndAlso Me.FirstPageNumber > 0 _
          AndAlso Me.LastPageNumber > 0 Then
            reportFormatTypeOptions.UsePageRange = True
            reportFormatTypeOptions.FirstPageNumber = Me.FirstPageNumber
            reportFormatTypeOptions.LastPageNumber = Me.LastPageNumber
          End If
          With reportExportOptions
            .ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
            .ExportFormatType = ExportFormatType.PortableDocFormat
            .ExportDestinationOptions = reportDiskFileDestinationOptions
            .ExportFormatOptions = reportFormatTypeOptions
          End With
          If Not System.IO.Directory.Exists(Me.ExportFilePath) Then
            System.IO.Directory.CreateDirectory(Me.ExportFilePath)
          End If
          Me.Export(reportExportOptions)
      End Sub
    End Class 

    Pretty much. 
    Seems I had at one time hard coded a record selection statement that I forgot to remove which caused the report to be blank.  That solved my problem, but there still seems to be an issue in that the Crystal Report Viewer performed differently when I tried to export to PDF (no records displayed) then when I didn't (records displayed).
    Chip

  • Crystal Reports Viewer Kerning issue

    Hello, I am using the Crystal Reports Viewer and the .NET ReportDocument object to either display a Crystal Report or print it to PDF. I have one paragraph that is a disclaimer and appears in Times New Roman Italics. In this case, the word "of" appears with the letter o and the letter f almost overlapping. This only appears when using the viewer, if I use Crystal Reports to view or export the report, it works fine. If there is a way to upload images or supporting documents, I can provide an example.
    Thanks, Steve

    Hi Ludek,
    - My default printer driver is Adobe PDF, installed with Adobe Acrobat 8 Professional. All reports will be printed to the Adobe Printer (not exported to PDF). I get better results this way.
    - I tried without a printer selected as recommended with no effect.
    - The problem is noticeable in both the viewer and the exported PDF.
    - I have tried both a database field and a static text field. If you want I can create a text field in the report I supply to you that will be identical to the database field, so you can see that it occurs in both cases.
    - Please note that this occurs in italicized text only. I'm using Times New Roman.
    Let me know where I can provide you with the report file.
    Thanks, Steve
    P.S. I'm new to this forum so could you provide me with a link or an explanation on how to award points, what is appropriate, etc...

Maybe you are looking for

  • The disk you inserted was not readable By this computer (Error)

    Hi everytime in the last couple of days im inserting a bank Cd to my cd/dvd drive (MATSHITADVD-R UJ-85J) im getting the same error "the disk you inserted was not readable By this computer" it only happen when the disk is blank. all other disks work o

  • How to convert files for transfer

    I borrowed a friends camera Canon XF300 and am shooting in 1920x1080 30p.  We have been moving the data files to a laptop, but need to convert the files to import to FCP7.  What's a good conversion software for this?

  • Creating catalogues automatically using image metadata

    Hi, I've been looking all over for this and I have found various bits and pieces of information, but nothing comprehensive enough for a beginner. Perhaps I am researching it wrong... Could you please point me to a complete and easy to understand sour

  • Gi/gr

    hello friends, actually i wanted the goods issue to happen while doing GR (mvt 101) so in production scheduling profile  i have ticked GI vial delivery. but after gr the unresticted stock of the component is not reducing instead reserved stock is inc

  • My iPhone screen went black and won't turn back on.

    Yesterday, my iPhone 4S screen went black and won't turn back on. So I tried just letting charge but after an hour nothing happened, so then I switched out the chargers and made sure the outlet I was using worked. But it still was black. Then I did a