FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to control fastreport print copies ?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to control fastreport print copies ?
Posted: Wed Nov 26, 2014 04:10 AM

Hi,
I want record fastreport printed copies, include prints from preview .
Best regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Re: How to control fastreport print copies ?
Posted: Wed Nov 26, 2014 11:32 AM

Hi,

Test :

oFr:PrintOptions:SetCopies(nCopy)

Regards.

Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: How to control fastreport print copies ?
Posted: Wed Nov 26, 2014 12:52 PM

TKS!
How can I record /know if pressed printer button on the preview dialog?
TkS!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Re: How to control fastreport print copies ?
Posted: Wed Nov 26, 2014 01:48 PM

Hi,

Try of adding or extracting some of these numbers :

                oFr:PreviewOptions:SetButtons( 1+4+8+16+32+64+128+1024 )

else view events PrinterOptions... sorry my english

Regards.

Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: How to control fastreport print copies ?
Posted: Thu Nov 27, 2014 08:07 AM

Tks! This can hide the print button on preview dialog.
How to count real printing times is my core problem.

Regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: How to control fastreport print copies ?
Posted: Thu Nov 27, 2014 12:53 PM

Each time you send the Print() command add x to a log field in your system. Where X is the number of copies that you send.
The user cant print by the preview, so the only place will be by your system.

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2

Continue the discussion