Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define the total of pages in Ranges...
Message
From
07/03/2006 01:49:09
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01101871
Message ID:
01101957
Views:
23
Naomi,
Thanks, but I tried using _PAGETOTAL but it doesnt work also.

Im looking to see if using mscomdlg.commondialog it will work.
loComDialog = createobject("mscomdlg.commondialog")
loComDialog.CancelError = .f.
loComDialog.Copies=1
loComDialog.Orientation=2 &&Landscape
loComDialog.Min=0 
loComDialog.Max=30
loComDialog.FromPage=5
loComDialog.ToPage=5
loComDialog.ShowPrinter()
I newer tryed to print a report this way, and how to make a change from the default printer dialog for this one when user clicks in the printer icon in the toolbar when in preview mode I dont´t know and have no ideia where to start.

Thanks.



>Peter,
>
>I may be wrong, but I don't think you can hook into Print dialog. If you can, it would be quite complicated code.
>
>You do know how many pages you have by using _PAGETOTAL variable. However, I'm not sure how can you use this variable (may be your own dialog).
>
>I believe (don't know for sure), that commercial products here in Downloads section can deal with this information...
>
>>Hi,
>>In the dialog box that opens when I click in the Print from the File menu or CRTL + P
>>
>>I Need to specify the total number os pages of a report in Print Range...
>>The user sometimes wants to print only the last page of the report, but the print range allways defines the total number os pages to 65534.
>>But to print only the last page the user has to know wich it is.
>>
>>Any ideia how to solve this problem in the dialog box ?
>>
>>Thanks in Advace.
>>
>>Peter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform