Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Strategy for Rendering Multiple Document Types From Single Source

Reply
Thread Tools

Strategy for Rendering Multiple Document Types From Single Source

 
 
Jordan S.
Guest
Posts: n/a
 
      05-12-2008
I would appreciate your thoughts and opinions on the following:

I am looking to render documents [that are constructed at runtime] into
multiple document formats. At a minimum the documents will need to be
rendered as HTML, and separately as PDF. Ideally we could also offer a
subset additionally as xls and docx (Excel and/or Word 2007) files.

All files will be distributed via ASP.NET Web site. This is a "greenfield"
project using .NET 3.5, and I can do whatever I want.

It appears to me that there are two general strategies I could take.

1. Render all documents initially as HTML, then to the other document types.

2. Render all documents initially into whatever the final document type will
be (i.e., do not render first as HTML, but just render the pdf file
directly, for example).

Keeping in mind that these files are all built at runtime from information
and templates stored in a database... These templates are basically HTML
snippets styled with css.

My initial preference is for alternative #1 above, as I could have one
single code base that builds these documents at runtime. That single code
base cranks out the HTML version, which is one of the required formats. From
the HTML, it would be a relatively trivial matter to convert the document to
PDF or whatever (there are 3rd party components that could do this
automatically and quickly - perhaps called via some custom HTTP module that
I write).

Thoughts? Opinions?

Thanks!



 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      05-12-2008
it depends on how complex the documents are. the html to pdf converters
either only do simple html, or use an IE instance and a print driver to
produce pdf.


-- bruce (sqlwork.com)


"Jordan S." wrote:

> I would appreciate your thoughts and opinions on the following:
>
> I am looking to render documents [that are constructed at runtime] into
> multiple document formats. At a minimum the documents will need to be
> rendered as HTML, and separately as PDF. Ideally we could also offer a
> subset additionally as xls and docx (Excel and/or Word 2007) files.
>
> All files will be distributed via ASP.NET Web site. This is a "greenfield"
> project using .NET 3.5, and I can do whatever I want.
>
> It appears to me that there are two general strategies I could take.
>
> 1. Render all documents initially as HTML, then to the other document types.
>
> 2. Render all documents initially into whatever the final document type will
> be (i.e., do not render first as HTML, but just render the pdf file
> directly, for example).
>
> Keeping in mind that these files are all built at runtime from information
> and templates stored in a database... These templates are basically HTML
> snippets styled with css.
>
> My initial preference is for alternative #1 above, as I could have one
> single code base that builds these documents at runtime. That single code
> base cranks out the HTML version, which is one of the required formats. From
> the HTML, it would be a relatively trivial matter to convert the document to
> PDF or whatever (there are 3rd party components that could do this
> automatically and quickly - perhaps called via some custom HTTP module that
> I write).
>
> Thoughts? Opinions?
>
> Thanks!
>
>
>
>

 
Reply With Quote
 
 
 
 
Jordan S.
Guest
Posts: n/a
 
      05-12-2008
Some documents are short and trivial, but others complex and lengthy. In
either case I was hoping to leverage the styling (font properties, image
layout etc) that are already appled to the HTML so that I don't have to
duplicate that logic for each rendered file type.

-J


"bruce barker" <> wrote in message
news:EAE69E75-82EC-478E-A7AD-...
> it depends on how complex the documents are. the html to pdf converters
> either only do simple html, or use an IE instance and a print driver to
> produce pdf.
>
>
> -- bruce (sqlwork.com)
>
>
> "Jordan S." wrote:
>
>> I would appreciate your thoughts and opinions on the following:
>>
>> I am looking to render documents [that are constructed at runtime] into
>> multiple document formats. At a minimum the documents will need to be
>> rendered as HTML, and separately as PDF. Ideally we could also offer a
>> subset additionally as xls and docx (Excel and/or Word 2007) files.
>>
>> All files will be distributed via ASP.NET Web site. This is a
>> "greenfield"
>> project using .NET 3.5, and I can do whatever I want.
>>
>> It appears to me that there are two general strategies I could take.
>>
>> 1. Render all documents initially as HTML, then to the other document
>> types.
>>
>> 2. Render all documents initially into whatever the final document type
>> will
>> be (i.e., do not render first as HTML, but just render the pdf file
>> directly, for example).
>>
>> Keeping in mind that these files are all built at runtime from
>> information
>> and templates stored in a database... These templates are basically HTML
>> snippets styled with css.
>>
>> My initial preference is for alternative #1 above, as I could have one
>> single code base that builds these documents at runtime. That single code
>> base cranks out the HTML version, which is one of the required formats.
>> From
>> the HTML, it would be a relatively trivial matter to convert the document
>> to
>> PDF or whatever (there are 3rd party components that could do this
>> automatically and quickly - perhaps called via some custom HTTP module
>> that
>> I write).
>>
>> Thoughts? Opinions?
>>
>> Thanks!
>>
>>
>>
>>

>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve single line with multiple items into mutliple lines, single items ela Perl Misc 12 04-06-2009 06:47 PM
IE6 SP1 rendering vs IE6 SP2 rendering Peter Mount HTML 4 01-31-2006 08:01 AM
request help with strategy for loading multiple drop down lists Chris ASP .Net Web Controls 1 09-24-2005 03:11 PM
[OO question] Single container, multiple types Victor Bazarov C++ 1 08-31-2004 09:55 PM
Namespace declaration from source document appears in target document. Mads Orbesen Troest XML 2 04-20-2004 05:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57