Hello !
With c# , I want to create a HTML file programatically .
How can I do it ?
Thank U ! 9 4356
What exactly do you need assisstance for? Creating file? Forming html? And
what is the file for? May be you don't need in the first place?
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com... Hello ! With c# , I want to create a HTML file programatically . How can I do it ? Thank U !
Eliyahu ,
I want to know how I open a new html file , write to the file in specific
font and colour.
The file intend to give indications about success and failure of some
operations (documentation ).
Thanks,
"Eliyahu Goldin" wrote: What exactly do you need assisstance for? Creating file? Forming html? And what is the file for? May be you don't need in the first place?
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.com... Hello ! With c# , I want to create a HTML file programatically . How can I do it ? Thank U !
Nir,
See if you need anything else apart from the following operations:
Open a file:
StreamWriter sw = new StreamWriter("TestFile.txt");
Write your html there:
sw.Write ("<span style='color:red'>Error</span>");
Close the stream:
sw.Close();
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com... Eliyahu , I want to know how I open a new html file , write to the file in specific font and colour. The file intend to give indications about success and failure of some operations (documentation ). Thanks,
"Eliyahu Goldin" wrote:
What exactly do you need assisstance for? Creating file? Forming html? And what is the file for? May be you don't need in the first place?
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.com... > Hello ! > With c# , I want to create a HTML file programatically . > How can I do it ? > Thank U !
Thank U very very much !
"Eliyahu Goldin" wrote: Nir,
See if you need anything else apart from the following operations:
Open a file: StreamWriter sw = new StreamWriter("TestFile.txt");
Write your html there: sw.Write ("<span style='color:red'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:E6**********************************@microsof t.com... Eliyahu , I want to know how I open a new html file , write to the file in specific font and colour. The file intend to give indications about success and failure of some operations (documentation ). Thanks,
"Eliyahu Goldin" wrote:
What exactly do you need assisstance for? Creating file? Forming html? And what is the file for? May be you don't need in the first place?
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.com... > Hello ! > With c# , I want to create a HTML file programatically . > How can I do it ? > Thank U !
Eliyahu ,
For this line:
StreamWriter sw = new StreamWriter("TestFile.txt");
The suffix need to be : "html" and not "txt" ?!
"Eliyahu Goldin" wrote: Nir,
See if you need anything else apart from the following operations:
Open a file: StreamWriter sw = new StreamWriter("TestFile.txt");
Write your html there: sw.Write ("<span style='color:red'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:E6**********************************@microsof t.com... Eliyahu , I want to know how I open a new html file , write to the file in specific font and colour. The file intend to give indications about success and failure of some operations (documentation ). Thanks,
"Eliyahu Goldin" wrote:
What exactly do you need assisstance for? Creating file? Forming html? And what is the file for? May be you don't need in the first place?
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.com... > Hello ! > With c# , I want to create a HTML file programatically . > How can I do it ? > Thank U !
Yes, sure. Also you might have to take care about your asp.net account
security rights.
Note, that the file will be written in the application directory.
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com... Eliyahu , For this line: StreamWriter sw = new StreamWriter("TestFile.txt"); The suffix need to be : "html" and not "txt" ?!
"Eliyahu Goldin" wrote:
Nir,
See if you need anything else apart from the following operations:
Open a file: StreamWriter sw = new StreamWriter("TestFile.txt");
Write your html there: sw.Write ("<span style='color:red'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:E6**********************************@microsof t.com... > Eliyahu , > I want to know how I open a new html file , write to the file in > specific > font and colour. > The file intend to give indications about success and failure of some > operations (documentation ). > Thanks, > > "Eliyahu Goldin" wrote: > >> What exactly do you need assisstance for? Creating file? Forming html? >> And >> what is the file for? May be you don't need in the first place? >> >> Eliyahu >> >> "Niron kag" <Ni******@discussions.microsoft.com> wrote in message >> news:55**********************************@microsof t.com... >> > Hello ! >> > With c# , I want to create a HTML file programatically . >> > How can I do it ? >> > Thank U ! >> >> >>
Can't I write the file to general directory like c:\ ?
"Eliyahu Goldin" wrote: Yes, sure. Also you might have to take care about your asp.net account security rights.
Note, that the file will be written in the application directory.
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:70**********************************@microsof t.com... Eliyahu , For this line: StreamWriter sw = new StreamWriter("TestFile.txt"); The suffix need to be : "html" and not "txt" ?!
"Eliyahu Goldin" wrote:
Nir,
See if you need anything else apart from the following operations:
Open a file: StreamWriter sw = new StreamWriter("TestFile.txt");
Write your html there: sw.Write ("<span style='color:red'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:E6**********************************@microsof t.com... > Eliyahu , > I want to know how I open a new html file , write to the file in > specific > font and colour. > The file intend to give indications about success and failure of some > operations (documentation ). > Thanks, > > "Eliyahu Goldin" wrote: > >> What exactly do you need assisstance for? Creating file? Forming html? >> And >> what is the file for? May be you don't need in the first place? >> >> Eliyahu >> >> "Niron kag" <Ni******@discussions.microsoft.com> wrote in message >> news:55**********************************@microsof t.com... >> > Hello ! >> > With c# , I want to create a HTML file programatically . >> > How can I do it ? >> > Thank U ! >> >> >>
You can if you wish.
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com... Can't I write the file to general directory like c:\ ?
"Eliyahu Goldin" wrote:
Yes, sure. Also you might have to take care about your asp.net account security rights.
Note, that the file will be written in the application directory.
Eliyahu
"Niron kag" <Ni******@discussions.microsoft.com> wrote in message news:70**********************************@microsof t.com... > Eliyahu , > For this line: > StreamWriter sw = new StreamWriter("TestFile.txt"); > The suffix need to be : "html" and not "txt" ?! > > "Eliyahu Goldin" wrote: > >> Nir, >> >> See if you need anything else apart from the following operations: >> >> Open a file: >> StreamWriter sw = new StreamWriter("TestFile.txt"); >> >> Write your html there: >> sw.Write ("<span style='color:red'>Error</span>"); >> >> Close the stream: >> sw.Close(); >> >> Eliyahu >> >> "Niron kag" <Ni******@discussions.microsoft.com> wrote in message >> news:E6**********************************@microsof t.com... >> > Eliyahu , >> > I want to know how I open a new html file , write to the file in >> > specific >> > font and colour. >> > The file intend to give indications about success and failure of >> > some >> > operations (documentation ). >> > Thanks, >> > >> > "Eliyahu Goldin" wrote: >> > >> >> What exactly do you need assisstance for? Creating file? Forming >> >> html? >> >> And >> >> what is the file for? May be you don't need in the first place? >> >> >> >> Eliyahu >> >> >> >> "Niron kag" <Ni******@discussions.microsoft.com> wrote in message >> >> news:55**********************************@microsof t.com... >> >> > Hello ! >> >> > With c# , I want to create a HTML file programatically . >> >> > How can I do it ? >> >> > Thank U ! >> >> >> >> >> >> >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Viviana Vc |
last post by:
How can I programatically do the equivalent of the following:
cacls "C:\Program Files\test" /T /G Everyone:f ?
Thanks,
Viv
|
by: pintihar |
last post by:
Hi,
As a follow on from an earlier post I have another question about
xslt.
Is it possible to create the stylsheet programatically? Is this
sensible? In the first phase I needed to map element...
|
by: spamfurnace |
last post by:
Hi there on this rainy old day,
I have some users logging into an asp.net website. The server the site sits
on allows users to webmail through a common service/component called Horde.
In order...
|
by: The Woo |
last post by:
Can one programatically create a file folder which has the same name
as a key field, using a command button?
Or,
Can there be a a command button which opens up a directory tree to a
specified...
|
by: Supriya |
last post by:
Hi All,
Is there any way to create .chm file programmatically?
Please let me know. Thanks in advance.
Supriya
|
by: vijay |
last post by:
HI ALL,
How to create excel chart programatically using C#.net 2005. I have created an excel file by using Gembox.Spreadsheet component.Now i want to add excel Chart to this...
|
by: The Mad Ape |
last post by:
Hi
I have code to programatically create a label. It works but when I try
to call a sub to create a tooltip it does not work. I do not get an
error so have no idea what it wrong. Please review...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |