User Tools

Site Tools


prop_printdocument.htm
Navigation:  Clarion.Net (Clarion#) > Clarion# Language Extensions > Clarion# Runtime Properties >====== PROP:PrintDocument ====== Previous pageReturn to chapter overviewNext page

reportlabel{PROP:PrintDocument}

reportlabel The label of a valid Clarion REPORT structure

PROP:PrintDocument is a runtime property used to assign the contents of an active REPORT structure to any .NET Document Object. It's intended use is to move the contents of any active report to a valid .NET Previewer Object.

Example:

dlg     &PrintPreviewDialog  ! ref to the .NET PREVIEWER
MyReport   PROCEDURE()
CODE
OPEN(xReport)
   !Your print logic goes here
ENDPAGE(xReport)
! Process and call the Previewer here
dlg &= new PrintPreviewDialog()
dlg.PrintPreviewControl.Zoom = .5              ! set scale to 50%
dlg.PrintPreviewControl.Columns = 4            ! display 4 pages side by side
dlg.Name = 'PrintPreviewControl from .Net FCL' ! some name for title bar
dlg.UseAntiAlias = True                        ! smooth fonts
dlg.Document = xReport{PROP:PrintDocument}     ! set the doc to preview to the report
dlg.WindowState = FormWindowState.Maximized;   ! max the preview dialog
dlg.ShowDialog()                               ! show it
xReport{PROP:FlushPreview} = False
CLOSE(xReport)
prop_printdocument.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1