Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling HTML formatting - SaveAs HTML

Status
Not open for further replies.

VShibad

Programmer
Apr 1, 2009
1
US
Hi,

Our system has a requirement to display rate estimates on a window, and generate an email-able replica of the estimate on request.
We're using the SaveAs function on the estimate datawindow to create an HTML file.

It's working ok from the point of view of data, but we dont know how to control the formatting of specific columns or text on the datawindow when translated to HTML.
Text alignment and spacing are very sensitive to the content and length of text, so the appearance/layout of the page changes significantly when text content is dynamically generated.

One technique we're considering is to create an HTML template with placeholders for variable fields, and substitute the field values at runtime.
But this would mean adding the HTML template file to the application distribution package, which we want to avoid if possible.

We don't have any other leads right now, so any pointers towards useful documentation or tips on getting started with this will be appreciated.

Regards,
Vikram
 
Does it have to be in HTML? Only reason I ask, is I have no experience exporting to HTML... The HTML I've generated was kind of like the template idea, and then finished up via code... No datawindow/datastore/SaveAs was used. A very brute-force method.

Since placement is an issue, is PDF an option? XML?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top