Hi Gareth,

Firstly, Nope i'm pretty sure your right about that. It can't be done. I
tried this months ago on the <cfcomponent> tag and ran into the same issues your
having.

However that said, could you not make the logic check which format that
user would like first before generating the file? I.e. If user clicked
"Flash" build the flash one IF user clicked 'PDF' do that one. Although
that would give you 2 really wouldnt it......

mmm

What a bummer.

j.

> Just a quick question.
> 
> Is it possible to put conditions around start and end tags? I've tried =
> it and it doesnt seem like you can. Code example below of what I would =
> like to be able to do.
> 
> <cfif isDefined('test')>
>       <cfdocument format=3D"flashPaper" fontembed=3D"true">
> </cfif>
> =09
> <html>
>       <head></head>
>       <body>
>               test
>       </body>
> </html>
> 
> <cfif isDefined('test')>
>       </cfdocument>
> </cfif>
> 
> What I need to do is allow the user to display a report/document in =
> either plain html or pdf/flash paper, while still allowing (in the =
> pdf/flash paper) pager headers, footers, pagebreaks, etc.
> 
> Wrapping it all up in a custom tag kind of works where generatedContent =
> is used in the end tag, but stops/limits my use of headers, footers, =
> etc.
> 
> All I can think of at the moment is have two files? but I rather not =
> have to maintain two files for every document that needs to be created.=20
> 
> So, suggestions are welcome.
> 
> TIA
> Gareth.

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to