` Set report names for print queue in windows (Greg Berthume) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Templates: Set report names for print queue in windows
1998-10-26 -- Greg Berthume
 
Newsgroups: comp.lang.clarion Editors note: Please note that some lines may wrap in the template code. One of the tips/tricks given at the C5 roadshow was how to assign your report a description so that when you are (or endusers) looking at the printer control dialog (print queue), you aren't looking at a bunch of blank descriptions wondering which report is which. I just discovered this myself so the solution was good timing. It looks like C5 Gold has a "Job Name" prompt on the report properties but for those that aren't using C5 yet (and you will eventually), here's a little extension template that will easily accommodate setting the report job name in 2003 and CPCS report procedures: Create \cw20\template\rptaddns.tpl or \clarion4\template\rptaddns.tpl Cut/paste the following into the file and then register the template: #TEMPLATE (ARptAddons, 'Report Addon Templates') #EXTENSION (ARptAddons, 'Set Report Print Job Name'),PROCEDURE #BOXED(''),AT(,,195) #DISPLAY('') #DISPLAY('Leave Blank for System Generated Name') #DISPLAY('') #DISPLAY('&Report Print Job Name:') #PROMPT('',@S64),%GBPrintJobName,DEFAULT(''),AT(10,,180) #ENDBOXED #AT(%AfterOpeningReport,'After Opening Report') #IF (%GBPrintJobName='') Report{PROP:Text}='%Application: %Procedure' #ELSE Report{PROP:Text}='%GBPrintJobName' #ENDIF #ENDAT #! Comments: #! #! To save more time, you can change the DEFAULT('') to something like #! DEFAULT('Appname: ') #! Then you can just add the report description after your appname. #! #! Lazy developers can leave the field blank and it will automatically #! be set to your appname: procedurename, ie: CTPAY: PrintInvoices If you haven't gotten into template programming yet, you can see by looking at this template how easy it is to extend procedure functionality via extension templates. I've asked Larry Teames to add a Job Name prompt to his CPCS report properties. Greg Berthume GBerthume@compuserve.com PCL Tools, PTools & PowerRUN for Clarion Info/Demos at: http://members.aol.com/GBerthume


Today is November 21, 2024, 3:46 am
This article has been viewed 35205 times.
Google search has resulted in 38 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: