473,385 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Creating HTML Document

I have a game program I am writing.

I want to publish the results of a turn as a html document that I can then
e-mail to the players.

What would be the best way to create the html document from C#.

Thanks for the help.

Ken

Nov 23 '05 #1
3 4550
Ken,

I would use a StringWriter/HTMLTextWriter combination to give an in-memory
representation which you could write to disk or include in an e-mail.

"Ken Kazinski" wrote:
I have a game program I am writing.

I want to publish the results of a turn as a html document that I can then
e-mail to the players.

What would be the best way to create the html document from C#.

Thanks for the help.

Ken

Nov 23 '05 #2
Hi Paul,

Thank you for the information.

I would also like to put the location of the pieces in the document what
woudl you recommend for drawing the graphics / hexes on the page.

Ken

"Paul Hasell" wrote:
Ken,

I would use a StringWriter/HTMLTextWriter combination to give an in-memory
representation which you could write to disk or include in an e-mail.

"Ken Kazinski" wrote:
I have a game program I am writing.

I want to publish the results of a turn as a html document that I can then
e-mail to the players.

What would be the best way to create the html document from C#.

Thanks for the help.

Ken

Nov 23 '05 #3
Ken,

I think you're going to stuggle to "embed" graphics in HTML as it's only
really designed to accept these as references to server based resources.

It might be better to consider using PDF as the delivery container where you
can create your graphics using the .NET classes then embed the byte streams
(BMP or simliar) into the PDF along with any text. There are a number of PDF
creation utilities out there for .NET.

"Ken Kazinski" wrote:
Hi Paul,

Thank you for the information.

I would also like to put the location of the pieces in the document what
woudl you recommend for drawing the graphics / hexes on the page.

Ken

"Paul Hasell" wrote:
Ken,

I would use a StringWriter/HTMLTextWriter combination to give an in-memory
representation which you could write to disk or include in an e-mail.

"Ken Kazinski" wrote:
I have a game program I am writing.

I want to publish the results of a turn as a html document that I can then
e-mail to the players.

What would be the best way to create the html document from C#.

Thanks for the help.

Ken

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: svend | last post by:
I'm messing with some code here... Lets say I have this array: a1 = ; And I apply slice(0) on it, to create a copy: a2 = a1.slice(0); But this isn't a true copy. If I go a1 = 42, and then...
1
by: Don Stefani | last post by:
Hello, I have a form that I want to submit "onchange", OK I've got that working, but when the form submits, I want to pass along a value to a CGI script, as if that value was in a hidden form...
6
by: NotGiven | last post by:
I want to learn moer of what I saw in a recent example. They create a page that created new fields/element. It's not like they were hidden and they displayed them, they were not there, then the...
4
by: Jake Lewis | last post by:
I have an HTML page that loads fine including the .js file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script...
7
by: Russ | last post by:
Hi All, I have a problem getting the following simple example of "document.write" creating a script on the fly to work in all html browsers. It works in I.E., Firefox, and Netscape 7 above. It...
16
by: Mcginkel | last post by:
I am trying to find a way to load XHTML content in an Iframe. I use to do this in html by using the following code : var iframeObject = document.createElement("iframe");...
6
by: Adam Tilghman | last post by:
Hi all, I have found that IE doesn't seem to respect the <SELECT> "multiple" attribute when set using DOM methods, although the attribute/property seems to exist and is updated properly. Those...
5
by: sam | last post by:
Hi all, I am dynamically creating a table rows and inerting radio buttons which are also dynamically created. Everything works fine in Firefox as expected. But I am not able to select radio...
4
by: GRenard | last post by:
Hi, I'm trying just to display a table on a webpage using DOM elements created dynamically. I really don't understand why IE doesn't display the document successfully... If I make a...
1
by: Rako | last post by:
My problem is: I want to create an index to any of the available picture-groups. This index is a table of thumbs with a scrollbar. If you click on the thumb, you get the full picture displayed. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.