Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Franz Rachbauer Newsgroups: comp.lang.clipper.visual-objects Subject: Re: VO with ReportPro 2.12 printing a coloured block. Date: Mon, 6 Feb 2017 18:07:39 +0100 Organization: Aioe.org NNTP Server Lines: 28 Message-ID: References: <237104c3-d6f8-488d-a22e-41caddce7c74@googlegroups.com> NNTP-Posting-Host: Jz4x0Iu+n4cFFZSOisK/Ng.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.clipper.visual-objects:10137 With RpPrinter (handcoded) you can do this with: oRpPrinter:DrawRectangle([nFromY], [nFromX], [nToY], [nToX], [nLineThickness], [nLineStyle], [oLineColor], [nBkGndStyle], [nBkGndColor]). With RpReport (designer) maybe: design the needed coloured rectangles and give them a PrintWhen clause depending on a var. Regards, Franz Am 06.02.2017 um 17:25 schrieb simon@abersoftware.co.uk: > Hi All, > > Been a long time since posting here! > > Anyone still using reportpro to print reports? > > I want to print a block of colour onto a report based on a RGB value from the database. (Each item on the report can be painted in a different colour so I wanted to print this colour alongside each item if I can.) > > Anyone have any ideas? > > TIA > > Simon > > My only idea at the moment would be to generate BMPs of each colour and print that onto the report. Not sure if I can create a UDF for report pro that would generate this BMP on the fly. >