🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1208

TPageProducer

#1208
From: Mike Collins
Date: Thu, 25 Aug 2005 00:20
25 lines
2115 bytes
Hi all, not sure if this is the right news group but here goes:  I've been 
developing a reporting facility for my application that uses .html files are 
the template for the reports.  For the fields that I want to propergate I 
use user-defined tags i.e. <#somefield>.  I attemp to propagate this using 
the TPageProducer, setting the HTMLFile to my template and then calling the 
Content() method.  With in the OnHTMLTag event I obviously do my propagation 
with the data coming from a dataset / query.  To make this easy, I make the 
tag the same value as the table name i.e. <#customer_name> or 
<#customer_address> which means that I can something like:

ReplaceText = query->FieldByName(TagString)->AsString;

- this all works fine untill I try to add the table name to the tag i.e. 
<#customer.customer_name> or <#customer.customer_address> which I NEED to do 
because I have select statements that do inner joins.  In these cases, I 
only get the tag value up to the full stop i.e. customer - not the field 
name.

Does anyone know why this is?  Is there an easy way to over come it, other 
that defining some other seperation character and doing a replace function, 
althought all non-alpha characters have the same effect.

Thanks in advance

Mike 
Technical Details
Message-ID: <430d0cb1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,aa9ca7268ab22a09,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@thebottomofthe.post>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: TPageProducer
Date: Thu, 25 Aug 2005 01:20:48 +0100
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.2.92.14
Message-ID: <430d0cb1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124928689 81.2.92.14 (24 Aug 2005 17:11:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail