[]
        
(Showing Draft Content)

C1.WPF.ReportViewer.C1ReportViewer

C1ReportViewer Class

Displays PDF and HTML documents with navigation controls.

Namespace: C1.WPF.ReportViewer
Assembly: C1.WPF.ReportViewer.4.6.2.dll
Syntax
[TemplatePart(Name = "Content", Type = typeof(Panel))]
[TemplatePart(Name = "HorizontalScrollBar", Type = typeof(ScrollBar))]
[TemplatePart(Name = "VerticalScrollBar", Type = typeof(ScrollBar))]
[StyleTypedProperty(Property = "ScrollBarStyle", StyleTargetType = typeof(ScrollBar))]
public class C1ReportViewer : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1ReportViewer()

Initializes a new instance of a C1ReportViewer.

Fields

Name Description
ComputedHorizontalScrollBarVisibilityProperty

Identifies the ComputedHorizontalScrollBarVisibility dependency property.

ComputedVerticalScrollBarVisibilityProperty

Identifies the ComputedVerticalScrollBarVisibility dependency property.

DecreaseZoomCommandProperty

Identifies the DecreaseZoomCommand dependency property.

ExtentHeightProperty

Identifies the ExtentHeight dependency property.

ExtentWidthProperty

Identifies the ExtentWidth dependency property.

FindCountProperty

Identifies the FindCount dependency property.

FindNextCommandProperty

Identifies the FindNextCommand dependency property.

FindNumberProperty

Identifies the FindNumber dependency property.

FindPreviousCommandProperty

Identifies the FindPreviousCommand dependency property.

FindTextProperty

Identifies the FindText dependency property.

FirstPageCommandProperty

Identifies the FirstPageCommand dependency property.

HorizontalOffsetProperty

Identifies the HorizontalOffset dependency property.

HorizontalScrollBarVisibilityProperty

Identifies the HorizontalScrollBarVisibility dependency property.

IncreaseZoomCommandProperty

Identifies the IncreaseZoomCommand dependency property.

IsFlowingProperty

Identifies the IsFlowing dependency property.

LastPageCommandProperty

Identifies the LastPageCommand dependency property.

NextPageCommandProperty

Identifies the NextPageCommand dependency property.

PageCountProperty

Identifies the PageCount dependency property.

PageMarginProperty

Identifies the PageMargin dependency property.

PageNumberProperty

Identifies the PageNumber dependency property.

PageSeparationProperty

Identifies the PageSeparation dependency property.

PageSizeProperty

Identifies the PageSize dependency property.

PageTemplateProperty

Identifies the PageTemplate dependency property.

PreviousPageCommandProperty

Identifies the PreviousPageCommand dependency property.

PrintCommandProperty

Identifies the PrintCommand dependency property.

SaveCommandProperty

Identifies the SaveCommand dependency property.

ScrollBarStyleProperty

Identifies the ScrollBarStyle dependency property.

ScrollableHeightProperty

Identifies the ScrollableHeight dependency property.

ScrollableWidthProperty

Identifies the ScrollableWidth dependency property.

SelectionBackgroundProperty

Identifies the SelectionBackground dependency property.

ToolbarStyleProperty

Identifies the ToolbarStyle dependency property.

ToolbarVisibilityProperty

Identifies the ToolbarVisibility dependency property.

VerticalOffsetProperty

Identifies the VerticalOffset dependency property.

VerticalScrollBarVisibilityProperty

Identifies the VerticalScrollBarVisibility dependency property.

ViewModeProperty

Identifies the ViewMode dependency property.

ViewportHeightProperty

Identifies the ViewportHeight dependency property.

ViewportWidthProperty

Identifies the ViewportWidth dependency property.

ZoomProperty

Identifies the Zoom dependency property.

Properties

Name Description
Attachments

Gets the list of attachments for this pdf document.

AutoContentRotation

Indicate whether the printer automatically change the page orientation according to the size of content.

Bookmarks

Gets the list of top level bookmarks for this document.

ComputedHorizontalScrollBarVisibility

Gets a value that indicates whether the horizontal ScrollBar is visible.

ComputedVerticalScrollBarVisibility

Gets a value that indicates whether the vertical ScrollBar is visible.

DecreaseZoomCommand

Gets the ICommand that decreases zoom.

DocumentInfo

Gets the document information in the pdf file.

ExtentHeight

Gets the vertical size of all the content for display in the C1ReportViewer.

ExtentWidth

Gets the horizontal size of all the content for display in the C1ReportViewer.

FindCount

Gets the total number of occurrences of FindText.

FindNextCommand

Gets the ICommand that performs the FindNext() operation.

FindNumber

Gets the number of the currently selected occurrence of FindText.

FindPreviousCommand

Gets the ICommand that performs the FindPrevious() operation.

FindText

Gets or sets the text that will be searched by FindNext() and FindPrevious().

FirstPageCommand

Gets the ICommand that goes to the first page.

HorizontalOffset

Gets or sets a value that indicates the horizontal offset of the scrolled content.

HorizontalScrollBarVisibility

Gets or sets a value that indicates whether a horizontal ScrollBar should be displayed.

IncreaseZoomCommand

Gets the ICommand that increases zoom.

IsFlowing

Gets whether the current document is displayed as a flowing document, instead of paged.

LastPageCommand

Gets the ICommand that goes to the last page.

NextPageCommand

Gets the ICommand that goes to the next page.

PageCount

Gets the current number of display pages for the content hosted by the C1ReportViewer.

PageMargin

Gets or sets the margin of the page used for displaying and printing HTML documents.

PageNumber

Gets the page number for the currently displayed page.

PageSeparation

Gets or sets the separation between pages.

PageSize

Gets or sets the size of the page used for displaying and printing HTML documents.

PageTemplate

Gets or sets the DataTemplate used to display pages.

PreviousPageCommand

Gets the ICommand that goes to the previous page.

PrintCommand

Gets the ICommand that performs the PrintDocument(string) operation.

SaveCommand

Gets the ICommand that saves the document using SaveFileDialog.

ScrollBarStyle

Gets or sets the Style used by the ScrollBar control contained in the default template.

ScrollableHeight

Gets a value that represents the horizontal size of the area that can be scrolled; the difference between the height of the extent and the height of the viewport.

ScrollableWidth

Gets a value that represents the vertical size of the area that can be scrolled; the difference between the width of the extent and the width of the viewport.

SelectedText

Gets the current selection.

SelectionBackground

Gets or sets a Brush for this C1ReportViewer's selection.

ToolbarStyle

Gets or set the style applied to this C1ReportViewer's toolbar.

ToolbarVisibility

Gets or sets the Visibility of this C1ReportViewer toolbar.

VerticalOffset

Gets or sets a value that indicates the vertical offset of the scrolled content.

VerticalScrollBarVisibility

Gets or sets a value that indicates whether a horizontal ScrollBar should be displayed.

ViewMode

Gets or sets the ViewMode for this C1ReportViewer.

ViewportHeight

Gets a value that contains the vertical size of the viewable content.

ViewportWidth

Gets a value that contains the horizontal size of the viewable content.

Zoom

Gets or sets the document zoom.

Methods

Name Description
ClipboardCopy()

Copy the current selection to the clipboard.

CloseDocument()

Closes the current document.

FindNext()

Go to the next occurrence of FindText.

FindNext(IList<FrameworkElement>)
FindPrevious()

Go to the previous occurrence of FindText.

FindPrevious(IList<FrameworkElement>)
GetAttachment(Attachment)

Returns memory stream with attachment data in the pdf file.

GetPages()

Returns a copy of the FrameworkElements that represent the document pages.

GoToBookmark(params string[])

Jump to a specified bookmark.

GoToPage(int)

Jump to a specified page number.

LoadDocument(Stream, string)

Load a PDF or HTML document from a Stream.

LoadDocument(string, string)

Load a PDF or HMTL document from a file.

LoadDocumentFromString(string)

Load an HTML document from a string.

OnApplyTemplate()

Builds the visual tree for the C1ReportViewer control when a new template is applied.

OnKeyDown(KeyEventArgs)
OnMouseLeftButtonDown(MouseButtonEventArgs)
OnMouseWheel(MouseWheelEventArgs)
OnParsingError(object, ParsingErrorEventArgs)

Provides class handling for the C1PdfViewer.ParsingError event that occurs when any error occurs in pdf parsing.

OnPreparedPage(object, PreparedPageEventArgs)

Provides class handling for the C1PdfViewer.PreparedPage event that occurs when pages end rendering.

OnPreparingPage(object, PreparingPageEventArgs)

Provides class handling for the C1PdfViewer.PreparingPage event that occurs when pages start rendering.

PrintDocument(string)

Print the current document.

SaveDocument()

Save the current document to a file.

SaveDocument(Stream)

Save the current document to a Stream.

SaveDocument(string)

Save the current document to a file.

Events

Name Description
AttachmentClick

Fired when click on attachment icon in the pdf file.

FindCountChanged

Event raised when the FindCount property has changed.

FindNumberChanged

Event raised when the FindNumber property has changed.

FindTextChanged

Event raised when the FindText property has changed.

IsFlowingChanged

Event raised when the IsFlowing property has changed.

PageCountChanged

Event raised when the PageCount property has changed.

PageNumberChanged

Event raised when the PageNumber property has changed.

ParsingError

Fired only when any error occurs in pdf parsing.

PreparedPage

Fired only when pdf pages end rendering.

PreparingPage

Fired only when pdf pages start rendering.

RequestNavigate

Fired when a link from a document is clicked.

TextBlockAdded

Fired after a TextBlock is created from text in the pdf file, permitting font substitution.

ViewModeChanged

Event raised when the ViewMode property has changed.

ZoomChanged

Event raised when the Zoom property has changed.