Solved crystal reports format section event

Posted on 2005-04-27
Last Modified: 2013-11-25
I am using 2003 with crystal reports.  In vb6 you could get at the section events easily to provide complex formating via code.  What is the equivalent in and how do you implement it.  I think this is done via the format section event but i cannot find it anyway.  I wish to put data into a report field that i look up via another function i have written .
Question by:wrxguru
    LVL 9

    Expert Comment

    Hi wrxguru,

     Hi this documentation from the msdn might get you going.

    Public Instance Properties
    Database Database. Gets the Database object.
    DataDefinition DataDefinition. Gets the DataDefinition object.
    ExportOptions ExportOptions. Gets the ExportOptions object.
    FilePath String. Gets the file path and name of the report.
    HasSavedData Boolean. Gets whether the report has data saved in memory.
    IsLoaded Boolean. Gets whether the report has been loaded using the Load method.
    IsSubreport Boolean. Gets whether the report is a subreport.
    Name String. Gets the report name. For the main report, the report name is empty.
    PrintOptions PrintOptions. Gets the PrintOptions object.
    RecordSelectionFormula String. Gets or sets record selection formula.
    ReportDefinition ReportDefinition. Gets the ReportDefinition object.
    ReportOptions ReportOptions. Gets the ReportOptions object.
    SummaryInfo SummaryInfo. Gets the SummaryInfo object.

    Public Instance Methods
    Close Closes the report.
    EnableEventLog Enables the event log for the print engine. By default the log is not enabled.
    Export Exports a report to a format and destination specified within the ExportOptions Object.
    ExportToDisk Exports the report to a file in the specified format.
    ExportToStream Exports the report to a stream in the specified format.
    GetConcurrentUsage Returns the number of concurrent jobs opened allowing developers to build license monitoring into their applications.
    Load Overloaded. Loads a new report using the specified type.
    OpenSubreport Opens a subreport contained in the report and returns a ReportDocument Object corresponding to the named subreport.
    PrintToPrinter Prints the specified pages of the report to the printer selected using the PrintOptions.PrinterName property. If no printer is selected, the default printer specified in the report will be used.
    Refresh Reloads and displays the report from its original source.
    SaveAs Saves the report into the specified file with specified ReportFileFormat.
    SetCSSClass Sets the cascading style sheet (CSS) for various sections and report objects. The style class can be used to override the object and section formats contained in the report. For more information on formatting reports over the Web see Formatting Reports using HTML Classes.
    SetDatabaseLogon Overloaded. Sets the database logon information. Logon information is applied to all tables if server name and database name are not specified.
    SetDataSource Passes a Recordset or Dataset to the report engine when using a 'Push Model'. For more information on Push and Pull models, see Data Access.
    SetParameterValue Overloaded. Sets the current value of a parameter field. The value can be a primitive, ParameterValue, an array of either type, or a ParameterValues collection.

    Public Instance Events
    InitReport Event fired when a report is loaded successfully.

    See Also
    ReportDocument Class | CrystalDecisions.CrystalReports.Engine Namespace

    LVL 1

    Author Comment

    but what is the URL for that article ?  
    LVL 9

    Expert Comment

    Got that from the MSDN library that comes with Visual Studio.

    So you couold goto msdn at microsoft and do a search for ReportDocument in the MSDN library.
    LVL 1

    Author Comment

    Upon investigation via other means it seems that this cannot be done in Crystal 9...

    Accepted Solution

    PAQed with points refunded (250)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    changeXy challenge 13 40
    nestparen challenge 4 33
    mapAB Challlenge 35 41
    to transfer string from C lanaguage to VBA 4 34
    This article will show, step by step, how to integrate R code into a R Sweave document
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now