Have you tried?
REPORT FORM "C:\PARAMU\Tm_Sheets1.frx" TO PRINTER PROMPT PREVIEW
> Hi,
>
> Thanks in advance.
>
> During the reports preview, from the Preview Tool bar, when they click print, I want to get the range for pages
> All or From page & To page.
>
> This will be more significant for the users. Kindly guide me.
>
> Preview Codings :-
>
> LOCAL PviewCon2, bx AS ReportListener
> DO ("C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9\REPORTPREVIEW.APP") WITH PviewCon2
> PviewCon2.Caption = 'PIS Special Report'
> PviewCon2.ZoomLevel = 5
> PviewCon2.ToolbarIsVisible = .F.
> bx = CREATEOBJECT('ReportListener')
> bx.QuietMode = .T.
> bx.DynamicLineHeight= .T.
> bx.AllowModalMessages = .T.
> bx.ListenerType = 1
> bx.PrintJobName = "PIS - Employees Daily Attendance Sheet"
> bx.PreviewContainer =PviewCon2
> thisform.WindowState = 2
> SET REPORTBEHAVIOR 90
> REPORT FORM "C:\PARAMU\Tm_Sheets1.frx" PREVIEW OBJECT bx NOWAIT
> PviewCon2.oForm.Toolbar.visible=.T.
> PviewCon2.oForm.ToolBar.Movable = .F.
> PviewCon2.oForm.ToolBar.Sizable = .F.
> PviewCon2.oForm.Toolbar.Dock(0)
> PviewCon2.oForm.WindowState = 2
> PviewCon2.oForm.ICON="C:\PARAMU\My_Icons\Reprt_1.ico"
> PviewCon2.oForm.maxbutton=.F.
> PviewCon2.oForm.minbutton=.F.
>
>
> By PARAMU
I'm new, Thanks for your patience.