- •TCrpe Component
- •Properties
- •Properties By Group
- •About
- •AreaFormat
- •AreaFormat Properties
- •AreaFormat Methods
- •AreaFormatFormulas
- •AreaFormatFormulas Properties
- •AreaFormatFormulas Methods
- •CanCloseEngine
- •Connect
- •Connect Properties
- •Connect Methods
- •ConnectMethod
- •DesignControls
- •DetailCopies
- •DialogParent
- •DiscardSavedData
- •Export
- •Export Properties
- •Export Methods
- •FieldMapping
- •Formulas
- •Formulas Properties
- •Formulas Methods
- •GraphData
- •GraphData Properties
- •GraphData Methods
- •GraphOptions
- •GraphOptions Properties
- •GraphOptions Methods
- •GraphText
- •GraphText Properties
- •GraphText Methods
- •GraphType
- •GraphType Properties
- •GraphType Methods
- •GroupCondition
- •GroupCondition Properties
- •GroupCondition Methods
- •GroupOptions
- •GroupOptions Properties
- •GroupOptions Methods
- •GroupSelection
- •GroupSelection Properties
- •GroupSelection Methods
- •GroupSortFields
- •GroupSortFields Properties
- •GroupSortFields Methods
- •HasSavedData
- •IsJobFinished
- •JobNumber
- •LastErrorNumber
- •LastErrorString
- •LoadEngineOnUse
- •LogOnInfo
- •LogOnInfo Properties
- •LogOnInfo Methods
- •LogOnServer
- •LogOnServer Properties
- •LogOnServer Methods
- •Margins
- •Margins Properties
- •Margins Methods
- •Output
- •Pages
- •Pages Properties
- •Pages Methods
- •ParamFields
- •ParamFields Properties
- •ParamFields Methods
- •PrintDate
- •PrintDate Properties
- •PrintDate Methods
- •PrintEnded
- •Printer
- •Printer Properties
- •Printer Methods
- •PrintOptions
- •PrintOptions Properties
- •PrintOptions Methods
- •ProgressDialog
- •Records
- •Records Methods
- •ReportName
- •ReportOptions
- •ReportOptions Properties
- •ReportOptions Methods
- •ReportTitle
- •SectionFont
- •SectionFont Properties
- •SectionFont Methods
- •SectionFormat
- •SectionFormat Properties
- •SectionFormat Methods
- •SectionFormatFormulas
- •SectionFormatFormulas Properties
- •SectionFormatFormulas Methods
- •SectionHeight
- •SectionHeight Properties
- •SectionHeight Methods
- •Selection
- •Selection Properties
- •Selection Methods
- •SendOnExecute
- •SessionInfo
- •SessionInfo Properties
- •SessionInfo Methods
- •SortFields
- •SortFields Properties
- •SortFields Methods
- •SQL Properties
- •SQL Methods
- •Status
- •Subreports
- •Subreports Properties
- •Subreports Methods
- •SummaryInfo
- •SummaryInfo Properties
- •SummaryInfo Methods
- •Tables
- •Tables Properties
- •Tables Methods
- •Version
- •Version Properties
- •Version Methods
- •WindowButtonBar
- •WindowButtonBar Properties
- •WindowButtonBar Methods
- •WindowCursor
- •WindowCursor Properties
- •WindowCursor Methods
- •WindowEvents
- •WindowParent
- •WindowSize
- •WindowSize Properties
- •WindowSize Methods
- •WindowState
- •WindowStyle
- •WindowStyle Properties
- •WindowStyle Methods
- •WindowZoom
- •WindowZoom Properties
- •WindowZoom Methods
- •Methods
- •BooleanToStr method
- •CancelJob method
- •Clear method
- •Create method
- •CloseEngine method
- •CloseJob method
- •CloseWindow method
- •CopyFrom method
- •DateTimeToStr method
- •DateToStr method
- •Destroy method
- •ExportWindow method
- •ExDateStr method
- •ExDateTimeStr method
- •Execute method
- •ExTimeStr method
- •FloatingToStr method
- •Focused method
- •GetPathFromAlias method
- •GetToken method
- •GetVersionInfo method
- •HideWindow method
- •IsStrEmpty method
- •LogOnPrivateInfo method
- •OpenEngine method
- •OpenJob method
- •PrintWindow method
- •ReportWindowHandle method
- •RetrieveDetailCopies method
- •RetrieveFieldMapping method
- •RetrieveReportTitle method
- •RetrieveWindowState method
- •SectionCodeToStr method
- •SendDetailCopies method
- •SendDialogParent method
- •SendDiscardSavedData method
- •SendFieldMapping method
- •SendOutput method
- •SendProgressDialog method
- •SendReportTitle method
- •SetFocus method
- •ShowWindow method
- •StrToBoolean method
- •StrToDate method
- •StrToDateTime method
- •StrToFloating method
- •StrToSectionCode method
- •StrToTCrBoolean method
- •StrToTime method
- •TCrBooleanToStr method
- •TimeToStr method
- •TruncStr method
- •VerifyDatabase method
- •Events
- •OnError event
- •OnExecuteBegin event
- •OnExecuteDoneSend event
- •OnExecuteEnd event
- •OnFieldMapping event
- •OnGetVersion event
- •OnJobOpened event
- •OnPrintEnded event
- •OnPrinterSend event
- •OnWindowClose event
- •WindowEvents
- •wOnActivateWindow
- •wOnCancelBtnClick
- •wOnCloseBtnClick
- •wOnCloseWindow
- •wOnDeActivateWindow
- •wOnDrillDetail
- •wOnDrillGroup
- •wOnExportBtnClick
- •wOnFirstPageBtnClick
- •wOnGroupTreeBtnClick
- •wOnLastPageBtnClick
- •wOnNextPageBtnClick
- •wOnPreviousPageBtnClick
- •wOnPrintBtnClick
- •wOnPrintSetupBtnClick
- •wOnReadingRecords
- •wOnRefreshBtnClick
- •wOnRightMouseClick
- •wOnSearchBtnClick
- •wOnShowGroup
- •wOnStartEvent
- •wOnStopEvent
- •wOnZoomLevelChange
- •Types
- •Enumerated Types / Special-Length Types
- •Event Types
- •Custom Property Field Types
- •Constants
- •Empty String
- •DetailCopies
- •Export
- •Margins
- •PrintOptions
- •Section
- •Error Codes - VCL Component
- •General
- •Graphs
- •GroupCondition/GroupOptions
- •GroupSortFields
- •LogOnInfo
- •Parameter Fields
- •Printer
- •Sections
- •SessionInfo
- •SortFields
- •SQL Params
- •Subreports
- •SummaryInfo
- •Tables
- •Window
- •Error Codes - Crystal Reports Print Engine
- •Sub-Class Properties and Methods
- •AreaFormat Hide property
- •AreaFormat Item property
- •AreaFormat ItemIndex property
- •AreaFormat KeepTogether property
- •AreaFormat NewPageAfter property
- •AreaFormat NewPageBefore property
- •AreaFormat PrintAtBottomOfPage property
- •AreaFormat ResetPageNAfter property
- •AreaFormat Section property
- •AreaFormat SectionAsCode property
- •AreaFormat Suppress property
- •AreaFormat Add method
- •AreaFormat Clear method
- •AreaFormat CopyFrom method
- •AreaFormat Count method
- •AreaFormat Create method
- •Area Format Delete method
- •AreaFormat Destroy method
- •AreaFormat Retrieve method
- •AreaFormat SectionType method
- •AreaFormat Send method
- •AreaFormatFormulas Formula property
- •AreaFormatFormulas Item property
- •AreaFormatFormulas ItemIndex property
- •AreaFormatFormulas Name property
- •AreaFormatFormulas NameIndex Property
- •AreaFormatFormulas Names Property
- •AreaFormatFormulas SectionAsCode property
- •AreaFormatFormulas Add method
- •AreaFormatFormulas Check method
- •AreaFormatFormulas Clear method
- •AreaFormatFormulas CopyFrom method
- •AreaFormatFormulas Count method
- •AreaFormatFormulas Create method
- •AreaFormatFormulas Delete method
- •AreaFormatFormulas Destroy method
- •AreaFormatFormulas IndexOf method
- •AreaFormatFormulas IndexOfName method
- •Connect DatabaseName property
- •Connect Password property
- •Connect Propagate property
- •Connect ServerName property
- •Connect UserID property
- •Connect Clear method
- •Connect CopyFrom method
- •Connect Create method
- •Connect Retrieve method
- •Connect Send method
- •Connect Test method
- •Export AppName property
- •Export CharSepQuote property
- •Export CharSepSeparator property
- •Export Destination property
- •Export Email property
- •Export Email CCList property
- •Export Email Message property
- •Export Email Subject property
- •Export Email ToList property
- •Export Email VIMBCCList property
- •Export Email Clear method
- •Export Email CopyFrom method
- •Export Excel5Ext property
- •Export Excel5Ext Area property
- •Export Excel5Ext ColumnHeadings property
- •Export Excel5Ext ColumnWidth property
- •Export Excel5Ext Constant property
- •Export Excel5Ext TabularFormat property
- •Export Excel5Ext Clear method
- •Export Excel5Ext CopyFrom method
- •Export Excel5Ext Create method
- •Export Exchange Property
- •Export Exchange Folder property
- •Export Exchange Password property
- •Export Exchange Profile property
- •Export Exchange Clear method
- •Export Exchange CopyFrom method
- •Export FileName property
- •Export FileType property
- •Export LinesPerPage property
- •Export ODBC Property
- •Export ODBC Password property
- •Export ODBC Source property
- •Export ODBC Table property
- •Export ODBC User property
- •Export ODBC Clear method
- •Export ODBC CopyFrom method
- •Export PromptForOptions property
- •Export PromptOnOverwrite property
- •Export UseRptDateFmt property
- •Export UseRptNumberFmt property
- •Export Clear method
- •Export CopyFrom method
- •Export Create method
- •Export Destroy method
- •Export Send method
- •Formulas Formula property
- •Formulas Item property
- •Formulas ItemIndex property
- •Formulas Name property
- •Formulas Add method
- •Formulas Check method
- •Formulas Clear method
- •Formulas CopyFrom method
- •Formulas Count method
- •Formulas Create method
- •Formulas Delete method
- •Formulas Destroy method
- •Formulas IndexOf method
- •Formulas Retrieve method
- •Formulas Send method
- •GraphData ColGroupN property
- •GraphData Direction property
- •GraphData Item property
- •GraphData ItemIndex property
- •GraphData Number property
- •GraphData RowGroupN property
- •GraphData Section property
- •GraphData SectionAsCode property
- •GraphData SummarizedFieldN property
- •GraphData Add method
- •GraphData Clear method
- •GraphData CopyFrom method
- •GraphData Count method
- •GraphData Create method
- •GraphData Delete method
- •GraphData Destroy method
- •GraphData Retrieve method
- •GraphData SectionType method
- •GraphData Send method
- •GraphOptions BarDirection property
- •GraphOptions DataValues property
- •GraphOptions Font property
- •GraphOptions GridLines property
- •GraphOptions Item property
- •GraphOptions ItemIndex property
- •GraphOptions Legend property
- •GraphOptions Max property
- •GraphOptions Min property
- •GraphOptions Number property
- •GraphOptions Section property
- •GraphOptions SectionAsCode property
- •GraphOptions Add method
- •GraphOptions Clear method
- •GraphOptions CopyFrom method
- •GraphOptions Count method
- •GraphOptions Create method
- •GraphOptions Delete method
- •GraphOptions Destroy method
- •GraphOptions Retrieve method
- •GraphOptions SectionType method
- •GraphOptions Send method
- •GraphText FootNote property
- •GraphText GroupsTitle property
- •GraphText Item property
- •GraphText ItemIndex property
- •GraphText Number property
- •GraphText Section property
- •GraphText SectionAsCode property
- •GraphText SeriesTitle property
- •GraphText SubTitle property
- •GraphText Title property
- •GraphText XAxisTitle property
- •GraphText YAxisTitle property
- •GraphText ZAxisTitle property
- •GraphText Add method
- •GraphText Clear method
- •GraphText CopyFrom method
- •GraphText Count method
- •GraphText Create method
- •GraphText Delete method
- •GraphText Destroy method
- •GraphText Retrieve method
- •GraphText SectionType method
- •GraphText Send method
- •GraphType Item property
- •GraphType ItemIndex property
- •GraphType Number property
- •GraphType Section property
- •GraphType SectionAsCode property
- •GraphType Style property
- •GraphType Add method
- •GraphType Clear method
- •GraphType CopyFrom method
- •GraphType Count method
- •GraphType Create method
- •GraphType Delete method
- •GraphType Destroy method
- •GraphType Retrieve method
- •GraphType SectionType method
- •GraphType Send method
- •GroupCondition Condition property
- •GroupCondition Direction property
- •GroupCondition Field property
- •GroupCondition GroupType property
- •GroupCondition Item property
- •GroupCondition ItemIndex property
- •GroupCondition Number property
- •GroupCondition Add method
- •GroupCondition Clear method
- •GroupCondition CopyFrom method
- •GroupCondition Count method
- •GroupCondition Create method
- •GroupCondition Delete method
- •GroupCondition Destroy method
- •GroupCondition Retrieve method
- •GroupCondition Send method
- •GroupOptions Condition property
- •GroupOptions Direction property
- •GroupOptions Field property
- •GroupOptions GroupType property
- •GroupOptions Item property
- •GroupOptions ItemIndex property
- •GroupOptions KeepTogether property
- •GroupOptions Number property
- •GroupOptions RepeatGH property
- •GroupOptions TopNDiscardOthers property
- •GroupOptions TopNGroups property
- •GroupOptions TopNOptions property
- •GroupOptions TopNSortField property
- •GroupOptions Add method
- •GroupOptions Clear method
- •GroupOptions CopyFrom method
- •GroupOptions Count method
- •GroupOptions Create method
- •GroupOptions Delete method
- •GroupOptions Destroy method
- •GroupOptions Retrieve method
- •GroupOptions Send method
- •GroupSelection Formula property
- •GroupSelection Replace property
- •GroupSelection Check method
- •GroupSelection Clear method
- •GroupSelection CopyFrom method
- •GroupSelection Create method
- •GroupSelection Destroy method
- •GroupSelection Retrieve method
- •GroupSelection Send method
- •GroupSortFields DeleteGSF property
- •GroupSortFields Direction property
- •GroupSortFields Field property
- •GroupSortFields Item property
- •GroupSortFields ItemIndex property
- •GroupSortFields Number property
- •GroupSortFields Add method
- •GroupSortFields Clear method
- •GroupSortFields CopyFrom method
- •GroupSortFields Count method
- •GroupSortFields Create method
- •GroupSortFields Delete method
- •GroupSortFields Destroy method
- •GroupSortFields Retrieve method
- •GroupSortFields Send method
- •LogOnInfo DatabaseName property
- •LogOnInfo DescriptiveName property
- •LogOnInfo DLLName property
- •LogOnInfo Item property
- •LogOnInfo ItemIndex property
- •LogOnInfo Password property
- •LogOnInfo ServerName property
- •LogOnInfo Table property
- •LogOnInfo TableType property
- •LogOnInfo UserID property
- •LogOnInfo Add method
- •LogOnInfo Clear method
- •LogOnInfo CopyFrom method
- •LogOnInfo Count method
- •LogOnInfo Create method
- •LogOnInfo Delete method
- •LogOnInfo Destroy method
- •LogOnInfo PromptForLogOn property
- •LogOnInfo Retrieve method
- •LogOnInfo Send method
- •LogOnInfo Test method
- •LogOnServer DatabaseName property
- •LogOnServer DLLName property
- •LogOnServer Item property
- •LogOnServer ItemIndex property
- •LogOnServer Number property
- •LogOnServer Password property
- •LogOnServer ServerName property
- •LogOnServer UserID property
- •LogOnServer Add method
- •LogOnServer Clear method
- •LogOnServer CopyFrom method
- •LogOnServer Count method
- •LogOnServer Create method
- •LogOnServer Delete method
- •LogOnServer Destroy method
- •LogOnServer IndexOf method
- •LogOnServer LogOff method
- •LogOnServer LogOn method
- •LogOnServer Retrieve method
- •Margins Bottom property
- •Margins Left property
- •Margins Right property
- •Margins Top property
- •Margins Clear method
- •Margins CopyFrom method
- •Margins Create method
- •Margins Retrieve method
- •Margins Send method
- •Pages Item property
- •Pages ItemIndex property
- •Pages Count method
- •Pages First method
- •Pages GetDisplayed method
- •Pages GetLatest method
- •Pages GetStart method
- •Pages GoToPage method
- •Pages Last method
- •Pages Next method
- •Pages Previous method
- •ParamFields AsBoolean property
- •ParamFields AsCurrency property
- •ParamFields AsDate property
- •ParamFields AsDateTime property
- •ParamFields AsNumber property
- •ParamFields AsTime property
- •ParamFields CurrentValue property
- •ParamFields CurrentValues property
- •ParamFields DefaultValue property
- •ParamFields DefaultValues property
- •ParamFields EditMask property
- •ParamFields Info property
- •ParamFields Info AllowEditing property
- •ParamFields Info AllowMultipleValues property
- •ParamFields Info AllowNull property
- •ParamFields Info GroupNum property
- •ParamFields Info MutuallyExclusiveGroup property
- •ParamFields Info PartOfGroup property
- •ParamFields Info ValueType property
- •ParamFields Info Clear method
- •ParamFields Info CopyFrom method
- •ParamFields Info Create method
- •ParamFields Info Retrieve method
- •ParamFields Info Send method
- •ParamFields Item property
- •ParamFields ItemIndex property
- •ParamFields Name property
- •ParamFields NeedsCurrentValue property
- •ParamFields ParamSource property
- •ParamFields ParamType property
- •ParamFields Prompt property
- •ParamFields Ranges property
- •ParamFields Ranges Item property
- •ParamFields Ranges ItemIndex property
- •ParamFields Ranges Number property
- •ParamFields Ranges RangeBounds property
- •ParamFields Ranges RangeEnd property
- •ParamFields Ranges RangeStart property
- •ParamFields Ranges Add method
- •ParamFields Ranges Clear method
- •ParamFields Ranges CopyFrom method
- •ParamFields Ranges Count method
- •ParamFields Ranges Create method
- •ParamFields Ranges Delete method
- •ParamFields Ranges Destroy method
- •ParamFields Ranges Retrieve method
- •ParamFields Ranges Send method
- •ParamFields ReportName property
- •ParamFields ShowDialog property
- •ParamFields Value property
- •ParamFields ValueLimit property
- •ParamFields ValueMax property
- •ParamFields ValueMin property
- •ParamFields Add method
- •ParamFields Clear method
- •ParamFields CopyFrom method
- •ParamFields Count method
- •ParamFields Create method
- •ParamFields Delete method
- •ParamFields Destroy method
- •ParamFields IndexOf method
- •ParamFields Retrieve method
- •ParamFields Send method
- •PrintDate Day property
- •PrintDate Month property
- •PrintDate Year property
- •PrintDate Clear method
- •PrintDate CopyFrom method
- •PrintDate Retrieve method
- •PrintDate Send method
- •Printer Driver property
- •Printer Mode property
- •Printer Name Property
- •Printer Orientation Property
- •Printer PMode Property
- •Printer Port Property
- •Printer PreserveRptSettings property
- •Printer ShowDialog property
- •Printer Clear Method
- •Printer CopyFrom Method
- •Printer Create Method
- •Printer GetCurrent Method
- •Printer Retrieve Method
- •Printer Send Method
- •Printer ShowPrintDlg Method
- •PrintOptions Collation property
- •PrintOptions Copies property
- •PrintOptions OutputFileName property
- •PrintOptions PromptForOptions property
- •PrintOptions StartPage property
- •PrintOptions StopPage property
- •PrintOptions Clear method
- •PrintOptions CopyFrom method
- •PrintOptions Create method
- •PrintOptions Retrieve method
- •PrintOptions Send method
- •Records Printed method
- •Records Read method
- •Records Selected method
- •ReportOptions CaseInsensitiveSQLData property
- •ReportOptions ConvertDateTimeType property
- •ReportOptions ConvertNullFieldToDefault property
- •ReportOptions CreateGroupTree property
- •ReportOptions NoDataForHiddenObjects property
- •ReportOptions PerformGroupingOnServer property
- •ReportOptions PrintEngineErrorMessages property
- •ReportOptions SaveDataWithReport property
- •ReportOptions SaveSummariesWithReport property
- •ReportOptions TranslateDOSMemos property
- •ReportOptions TranslateDOSStrings property
- •ReportOptions UseIndexForSpeed property
- •ReportOptions VerifyOnEveryPrint property
- •ReportOptions ZoomMode property
- •ReportOptions Clear method
- •ReportOptions CopyFrom method
- •ReportOptions Create method
- •ReportOptions Retrieve method
- •ReportOptions Send method
- •SectionFont CharSet property
- •SectionFont Family property
- •SectionFont Italic property
- •SectionFont Item property
- •SectionFont ItemIndex property
- •SectionFont Name property
- •SectionFont Pitch property
- •SectionFont Scope property
- •SectionFont Section property
- •SectionFont SectionAsCode property
- •SectionFont Size property
- •SectionFont StrikeThrough property
- •SectionFont Underlined property
- •SectionFont Weight property
- •SectionFont Add method
- •SectionFont Clear method
- •SectionFont CopyFrom method
- •SectionFont Count method
- •SectionFont Create method
- •SectionFont Delete method
- •SectionFont Destroy method
- •SectionFont Retrieve method
- •SectionFont SectionType method
- •SectionFont Send method
- •SectionFormat BackgroundColor property
- •SectionFormat FreeFormPlacement property
- •SectionFormat Hide property
- •SectionFormat Item property
- •SectionFormat ItemIndex property
- •SectionFormat KeepTogether property
- •SectionFormat NewPageAfter property
- •SectionFormat NewPageBefore property
- •SectionFormat PrintAtBottomOfPage property
- •SectionFormat ResetPageNAfter property
- •SectionFormat Section property
- •SectionFormat Suppress property
- •SectionFormat SuppressBlankSection property
- •SectionFormat UnderlaySection property
- •SectionFormat SectionAsCode property
- •SectionFormat Add method
- •SectionFormat Clear method
- •SectionFormat CopyFrom method
- •SectionFormat Count property
- •SectionFormat Create method
- •SectionFormat Delete method
- •SectionFormat Destroy method
- •SectionFormat Retrieve method
- •SectionFormat SectionType method
- •SectionFormat Send method
- •SectionFormatFormulas Formula property
- •SectionFormatFormulas Item property
- •SectionFormatFormulas ItemIndex property
- •SectionFormatFormulas Name property
- •SectionFormatFormulas NameIndex property
- •SectionFormatFormulas Names property
- •SectionFormatFormulas Section property
- •SectionFormatFormulas SectionAsCode property
- •SectionFormatFormulas Add method
- •SectionFormatFormulas Check method
- •SectionFormatFormulas Clear method
- •SectionFormatFormulas CopyFrom method
- •SectionFormatFormulas Count method
- •SectionFormatFormulas Create method
- •SectionFormatFormulas Delete method
- •SectionFormatFormulas Destroy method
- •SectionFormatFormulas IndexOf method
- •SectionFormatFormulas IndexOfName method
- •SectionFormatFormulas NameCount method
- •SectionFormatFormulas Retrieve method
- •SectionFormatFormulas SectionType method
- •SectionFormatFormulas Send method
- •SectionHeight Height property
- •SectionHeight Item property
- •SectionHeight ItemIndex property
- •SectionHeight Section property
- •SectionHeight SectionAsCode property
- •SectionHeight Add method
- •SectionHeight Clear method
- •SectionHeight CopyFrom method
- •SectionHeight Count method
- •SectionHeight Create method
- •SectionHeight Delete method
- •SectionHeight Destroy method
- •SectionHeight Retrieve method
- •SectionHeight SectionType method
- •SectionHeight Send method
- •Selection Formula property
- •Selection Replace property
- •Selection Check method
- •Selection Clear method
- •Selection CopyFrom method
- •Selection Create method
- •Selection Destroy method
- •Selection Retrieve method
- •Selection Send method
- •SessionInfo DBPassword property
- •SessionInfo Handle property
- •SessionInfo Item property
- •SessionInfo ItemIndex property
- •SessionInfo Propagate property
- •SessionInfo Table property
- •SessionInfo UserID property
- •SessionInfo UserPassword property
- •SessionInfo Add method
- •SessionInfo Clear method
- •SessionInfo CopyFrom method
- •SessionInfo Count method
- •SessionInfo Create method
- •SessionInfo Delete method
- •SessionInfo Destroy method
- •SessionInfo Retrieve method
- •SessionInfo Send method
- •SortFields DeleteSF property
- •SortFields Direction property
- •SortFields Field property
- •SortFields Item property
- •SortFields ItemIndex property
- •SortFields Number property
- •SortFields Add method
- •SortFields Clear method
- •SortFields CopyFrom method
- •SortFields Count method
- •SortFields Create method
- •SortFields Delete method
- •SortFields Destroy method
- •SortFields Retrieve method
- •SortFields Send method
- •SQL Expressions property
- •SQL Expressions Expression property
- •SQL Expressions Item property
- •SQL Expressions ItemIndex property
- •SQL Expressions Name property
- •SQL Expressions Add method
- •SQL Expressions Check method
- •SQL Expressions Clear method
- •SQL Expressions CopyFrom method
- •SQL Expressions Count method
- •SQL Expressions Create method
- •SQL Expressions Delete method
- •SQL Expressions Destroy method
- •SQL Expressions IndexOf method
- •SQL Expressions Retrieve method
- •SQL Expressions Send method
- •SQL Params property
- •SQL Params AsBoolean property
- •SQL Params AsDate property
- •SQL Params AsDateTime property
- •SQL Params AsFloat property
- •SQL Params AsInteger property
- •SQL Params Item property
- •SQL Params ItemIndex property
- •SQL Params Name property
- •SQL Params ParamType property
- •SQL Params Value property
- •SQL Params Add method
- •SQL Params Clear method
- •SQL Params CopyFrom method
- •SQL Params Count method
- •SQL Params Create method
- •SQL Params Delete method
- •SQL Params Destroy method
- •SQL Params Retrieve method
- •SQL Params Send method
- •SQL Query property
- •SQL Clear method
- •SQL CopyFrom method
- •SQL Create method
- •SQL Destroy method
- •SQL Retrieve method
- •SQL Send method
- •Subreports Item property
- •Subreports ItemIndex property
- •Subreports Name property
- •Subreports NLinks property
- •Subreports OnDemand property
- •Subreports Section property
- •Subreports SubExecute property
- •Subreports Add method
- •Subreports Clear method
- •Subreports CopyFrom method
- •Subreports Count method
- •Subreports Create method
- •Subreports Delete method
- •Subreports Destroy method
- •Subreports IndexOf method
- •Subreports Retrieve method
- •SummaryInfo AppName property
- •SummaryInfo Author property
- •SummaryInfo Comments property
- •SummaryInfo Keywords property
- •SummaryInfo Subject property
- •SummaryInfo Template property
- •SummaryInfo Title property
- •SummaryInfo Clear method
- •SummaryInfo CopyFrom method
- •SummaryInfo Create method
- •SummaryInfo Destroy method
- •SummaryInfo Retrieve method
- •SummaryInfo Send method
- •Tables DescriptiveName property
- •Tables DLLName property
- •Tables Item property
- •Tables ItemIndex property
- •Tables Name property
- •Tables Number property
- •Tables Password property
- •Tables Path property
- •Tables Propagate property
- •Tables TableType property
- •Tables Add method
- •Tables Clear method
- •Tables CopyFrom method
- •Tables Count method
- •Tables Create method
- •Table Delete method
- •Tables Destroy method
- •Tables Retrieve method
- •Tables Send method
- •Version DLL property
- •Version Engine property
- •Version Major property
- •Version Minor property
- •Version Windows property
- •Version Clear method
- •Version CopyFrom method
- •Version Create method
- •Version Retrieve method
- •WindowButtonBar AllowDrillDown property
- •WindowButtonBar CancelBtn property
- •WindowButtonBar CloseBtn property
- •WindowButtonBar ExportBtn property
- •WindowButtonBar GroupTree property
- •WindowButtonBar NavigationCtls property
- •WindowButtonBar PrintBtn property
- •WindowButtonBar PrintSetupBtn property
- •WindowButtonBar ProgressCtls property
- •WindowButtonBar RefreshBtn property
- •WindowButtonBar SearchBtn property
- •WindowButtonBar Visible property
- •WindowButtonBar ZoomCtl property
- •WindowButtonBar Clear method
- •WindowButtonBar CopyFrom method
- •WindowButtonBar Create method
- •WindowButtonBar Retrieve method
- •WindowButtonBar Send method
- •WindowCursor DetailArea property
- •WindowCursor DetailAreaField property
- •WindowCursor Graph property
- •WindowCursor GroupArea property
- •WindowCursor GroupAreaField property
- •WindowCursor Clear method
- •WindowCursor CopyFrom method
- •WindowCursor Create method
- •WindowCursor Retrieve method
- •WindowCursor Send method
- •WindowSize Height property
- •WindowSize Left property
- •WindowSize Top property
- •WindowSize Width property
- •WindowSize Clear method
- •WindowSize CopyFrom method
- •WindowSize Create method
- •WindowSize Retrieve method
- •WindowSize Send method
- •WindowStyle BorderStyle property
- •WindowStyle Disabled property
- •WindowStyle MaxButton property
- •WindowStyle MinButton property
- •WindowStyle SystemMenu property
- •WindowStyle Title property
- •WindowStyle Clear method
- •WindowStyle CopyFrom method
- •WindowStyle Create method
- •WindowZoom Magnification property
- •WindowZoom Preview property
- •WindowZoom CopyFrom method
- •WindowZoom Create method
- •WindowZoom NextLevel method
- •WindowZoom Send method
Description
The PMode property specifies a pointer to the DevMode structure associated with a certain Printer, and can be used to control DevMode-specific properties. Note that it is no longer necessary to fill in a value for this property, since the Crystal component will obtain this information internally provided a valid value is specified in the Name property.
The Retrieve method will also fill the PMode property with a value from the Printer settings saved with the current Report, or the GetCurrent method can be used right after showing the Delphi PrintDialog to obtain the Printer information and fill the Printer properties with values.
Example
The following example shows how to use the PMode property to check DevMode settings for the Printer properties saved with the Report (Orientation in this case):
Crpe1.ReportName := 'C:\Company.rpt';
{Get Printer settings from Report} Crpe1.Printer.Retrieve;
{Check the Orientation}
case Crpe1.Printer.PMode^.dmOrientation of DMORIENT_PORTRAIT : ShowMessage('Orientation is Portrait');
DMORIENT_LANDSCAPE : ShowMessage('Orientation is Landscape'); end;
Printer Port Property
Declaration
property Port: TCrPrinterName;
Type
TCrPrinterName = string[80];
Description
The Port property contains the Port name of the Printer.
Traditionally, the Crystal VCL used to require the Name, Driver, Port and Mode properties to be set before it would change the Printer for a Report. With the new Crystal component, however, this is not required. The only property that needs to be specified is the Name. The component will automatically fill in the other values (if the Printer Name is valid), when the component's Execute method is called.
VCL Reference |
495 |
If the Retrieve method is used, the Port property will contain the Port name for the Printer that was specified in the Report (or the default printer if the Printer specified in the Report is not valid). Alternatively, the GetCurrent method can be called right after showing Delphi's PrintDialog, and it will also fill the Printer properties with values corresponding to the selected Printer.
NOTE: Do not attempt to set the Port property to 'FILE:' if the Printer Driver has not been set up that way. It will not work. Crystal Reports 7 has built-in support for printing to FILE via the OutputFileName property of the PrintOptions class. For Crystal 5 and 6 users, see Setting Port to FILE.
Example
This code uses the Printer properties to change Printers to one selected via the Print Dialog. It also makes sure that the Orientation defined in the Report is preserved.
procedure RunReport; var
lpPrinter, lpDriver, lpPort : pChar;
hMode |
: THandle; |
pMode |
: PDevMode; |
nOrientation |
: integer; |
begin |
|
{Set ReportName}
Crpe1.ReportName := 'C:\Company.rpt' {Get Printer settings from Report} Crpe1.Printer.Retrieve;
{Check the Orientation} hMode := Crpe1.Printer.Mode; pMode := GlobalLock(hMode);
case pMode^.dmOrientation of DMORIENT_PORTRAIT : nOrientation := 0; DMORIENT_LANDSCAPE : nOrientation := 1;
end; GlobalUnlock(hMode);
{Allocate memory for Printer property variables} try
lpPrinter := StrAlloc(255); lpDriver := StrAlloc(255); lpPort := StrAlloc(255);
except
if lpPrinter <> nil then StrDispose(lpPrinter);
if lpDriver <> nil then StrDispose(lpDriver);
if lpPort <> nil then
StrDispose(lpPort);
Exit; end;
VCL Reference |
496 |
{Show the PrintDialog}
if PrintDialog1.Execute then {if OK was clicked} begin
{Get Selected Printer; could also use Crpe1.SelectPrinter} Printer.GetPrinter(lpPrinter, lpDriver, lpPort, hMode); {Set PrinterName}
Crpe1.Printer.Name := StrPas(lpPrinter);
{Set PrinterDriver: Check for Null - Win95 32-bit problem} if Length(StrPas(lpDriver)) <> 0 then
Crpe1.Printer.Driver := StrPas(lpDriver) else
Crpe1.Printer.Driver := StrPas(lpPrinter); {Set PrinterPort}
Crpe1.Printer.Port := StrPas(lpPort); {Set PrinterMode}
Crpe1.Printer.Mode := hMode;
{Make sure the Orientation remains as in Report} pMode := GlobalLock(hMode);
case nOrientation of
0:pMode^.dmOrientation := DMORIENT_PORTRAIT;
1:pMode^.dmOrientation := DMORIENT_LANDSCAPE;
end; GlobalUnlock(hMode);
{Run the Report} Crpe1.Execute;
end; StrDispose(lpPort); StrDispose(lpDriver); StrDispose(lpPrinter);
end;
The above code can be greatly simplified by using some of the other Printer object methods & properties:
procedure RunReport; begin
{Set ReportName}
Crpe1.ReportName := 'C:\Company.rpt'; {Preserve Orientation from Report}
Crpe1.Printer.PreserveRptSettings[prOrientation]; {Prompt for Printer at Execute} Crpe1.Printer.ShowDialog := True;
{Run the Report} Crpe1.Execute;
end;
VCL Reference |
497 |
Printer PreserveRptSettings property
Declaration
property PreserveRptSettings: TCrPreserveRptSettings;
Type
TCrPreserveRptSettings = set of TCrPreserveRptSet; TCrPreserveRptSet = (prOrientation, prPaperSize, prPaperSource);
Description
PreserveRptSettings is used to keep certain Printer-related settings (Orientation, Paper Size, Paper Source) as they were when the Report was designed, even though another Printer is specified which may not have the same values specified by default. To take full advantage of this property (and the Orientation property) requires some understanding of the Printer Setup dialog box in the Crystal Reports designer:
Orientation
This section of the Printer Setup dialog box determines whether the Report is Portrait or Landscape. This setting can be preserved as it is in the Report by adding prOrientation to the PreserveRptSettings set:
Crpe1.Printer.PreserveRptSettings := [prOrientation];
VCL Reference |
498 |
Paper Size
This section of the Printer Setup dialog box determines what the Paper Size of the Report will be. This setting can be preserved as it is in the Report by adding prPaperSize to the PreserveRptSettings set:
Crpe1.Printer.PreserveRptSettings := [prPaperSize];
Paper Source
This section of the Printer Setup dialog box determines what the Paper Source on the Printer will be (i.e. which Paper bin is used). This setting can be preserved as it is in the Report by adding prPaperSource to the PreserveRptSettings set:
Crpe1.Printer.PreserveRptSettings := [prPaperSource];
Preserving Paper Source may not function correctly yet on Windows NT 4.0 (see the Note below).
Default Properties
This checkbox specifies whether the Report will obtain the DevMode properties from the specified Printer, of whether it will save it's own specific settings. It is important if you plan to control or preserve Orientation, Paper Size, and Paper Source, that this box is UNchecked. Notice that if any of the Orientation or Paper items (in the Print Setup dialog box) are changed or edited, Default Properties will automatically be unchecked.
No Printer
This checkbox specifies whether the Report will have any specific Printer information saved with it or not. If this box is checked, it will be impossible to obtain any Printer specific information from the Report at runtime. Make sure it is UNchecked, or PreserveRptSettings and Retrieve will not work as expected.
NOTE: There is currently a small problem with PreserveRptSettings for prPaperSource and Windows NT 4.0. In NT4, the dmDefaultSource property of the DevMode structure cannot be modified. The Paper Source (Bin) can be associated with a certain Page Size by the NT Administrator (in the Windows Control Panel Printer Setup). Thereafter, any documents printed with that Page Size automatically go to the Bin associated with that size, regardless of any other bin setting. Therefore, it appears that Paper Source has to be changed using other Windows API calls, which we have not yet implemented in the VCL.
Example
The following code example uses the PreserveRptSettings property to preserve the PaperSize as defined in the Report, regardless of which Printer is chosen (note: this will only work if the Printer chosen supports that Page Size):
Crpe1.ReportName := 'C:\Company.rpt'; Crpe1.Output := toPrinter;
with Crpe1.Printer do begin
{Set Name to 3rd Printer in Printers list} Name := Printer.Printers[2];
{Set Orientation to Landscape}
VCL Reference |
499 |