Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Counting the number of times a report is previewed and the number

>Their application has to count the number of times :-
>- Each report is previewed to the screen,
>
Make preview mandatory. Then you know every time it is run it has been
previewed.

>- The number of times the report is actually sent to a printer.
>
I don't think this can be done with the standard  Clarion report
previewer since I never use it. If you just want to know if the report
printed, CPCS or IceTips Print Previewer can tell you that. If you want
to know if they printed and how many pages they printed, IceTips does a
great job of that. Of course both of these are 3rd party solutions that
cost extra. I don't think you would be disapointed with either.

>
>The count is to be recorded in a log with date,time, user, report name
>etc.
>
>I am thinking of making two copies of each report. One that can only
>preview and the other that can only print to the printer. Then
>counting once when either one is run. This means a parameter for every
>report procedure to say which mode it is in.
>
>Is there an easier way to get the count I require?
>
>Is there any way to tell when a report has been printed from a
>preview?
>
>
>Any help would be appreciated.
>
>

--

John E Singer
CIS, Inc


Report this thread to moderator Post Follow-up to this message
Old Post
John E Singer
12-14-04 08:55 PM


Re: Counting the number of times a report is previewed and the number
>> - The number of times the report is actually sent to a printer. 
> I don't think this can be done with the standard  Clarion report
> previewer since I never use it. <snip>
Well, from using the standard ABC Clarion report previewer
(PrintPreviewClass) with a handcoded report, I remember doing something
like:

If Previewer.someMethodThatShowsThePreview()
!Print the report
End

I guess the template is doing something like that, so it should be
possible to find out if the report is printed. I doesn't remeber the
correct method-name of the previwer, and can't check it out right now.
But check the preview-class documentation, and then search the generated
source to find the right embed.

That said, you must remeber that sending something to the printer
doesn't guarantee that it is actually printed: There could be a
paper-jam, the printer could be out of toner, some user or administrator
could remove the job from the printer-queue, and so on.

Best regards

Kasper

--
Besøg mig på nettet: http://www.kaspershjemmeside.dk

Report this thread to moderator Post Follow-up to this message
Old Post
Kasper G. Christensen
12-15-04 08:55 AM


Re: Counting the number of times a report is previewed and the number
>> - The number of times the report is actually sent to a printer. 
> I don't think this can be done with the standard  Clarion report
> previewer since I never use it. <snip>
Well, from using the standard ABC Clarion report previewer
(PrintPreviewClass) with a handcoded report, I remember doing something
like:

If Previewer.someMethodThatShowsThePreview()
!Print the report
End

I guess the template is doing something like that, so it should be
possible to find out if the report is printed. I doesn't remeber the
correct method-name of the previwer, and can't check it out right now.
But check the preview-class documentation, and then search the generated
source to find the right embed.

That said, you must remeber that sending something to the printer
doesn't guarantee that it is actually printed: There could be a
paper-jam, the printer could be out of toner, some user or administrator
could remove the job from the printer-queue, and so on.

Best regards

Kasper

--
Besøg mig på nettet: http://www.kaspershjemmeside.dk

Report this thread to moderator Post Follow-up to this message
Old Post
Kasper G. Christensen
12-17-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clarion archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:41 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.