Hello !
With c# , I want to create a HTML file programatically .
How can I do it ?
Thank U ! 9 4376
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******@discu ssions.microsof t.com> wrote in message
news:55******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:55******** *************** ***********@mic rosoft.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("T estFile.txt");
Write your html there:
sw.Write ("<span style='color:re d'>Error</span>");
Close the stream:
sw.Close();
Eliyahu
"Niron kag" <Ni******@discu ssions.microsof t.com> wrote in message
news:E6******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:55******** *************** ***********@mic rosoft.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("T estFile.txt");
Write your html there: sw.Write ("<span style='color:re d'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discu ssions.microsof t.com> wrote in message news:E6******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:55******** *************** ***********@mic rosoft.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("T estFile.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("T estFile.txt");
Write your html there: sw.Write ("<span style='color:re d'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discu ssions.microsof t.com> wrote in message news:E6******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:55******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:70******** *************** ***********@mic rosoft.com... Eliyahu , For this line: StreamWriter sw = new StreamWriter("T estFile.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("T estFile.txt");
Write your html there: sw.Write ("<span style='color:re d'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discu ssions.microsof t.com> wrote in message news:E6******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message >> news:55******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:70******** *************** ***********@mic rosoft.com... Eliyahu , For this line: StreamWriter sw = new StreamWriter("T estFile.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("T estFile.txt");
Write your html there: sw.Write ("<span style='color:re d'>Error</span>");
Close the stream: sw.Close();
Eliyahu
"Niron kag" <Ni******@discu ssions.microsof t.com> wrote in message news:E6******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message >> news:55******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:3D******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:70******** *************** ***********@mic rosoft.com... > Eliyahu , > For this line: > StreamWriter sw = new StreamWriter("T estFile.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("T estFile.txt"); >> >> Write your html there: >> sw.Write ("<span style='color:re d'>Error</span>"); >> >> Close the stream: >> sw.Close(); >> >> Eliyahu >> >> "Niron kag" <Ni******@discu ssions.microsof t.com> wrote in message >> news:E6******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message >> >> news:55******** *************** ***********@mic rosoft.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 name from inbound
xml to my internal elements to standardize disparate input.
Now I could just create an xslt stylesheet for each possible inbound
format and be done, but I think it would be powerful to be able store
this mapping in a database and...
|
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 to log onto Horde webmail the users have to fill in 5 fields. I
wanted to simplify things for them so they only had to click a button once
logged into the aps.net site.
At the moment i do this by recreating the form on my webform making all the...
|
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 location. I'm thinking this is a visual basic-related
question?
Why? I have a client tracking database. When the client's record is
|
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 excel file.But Gembox not support the excel chart.So i am in trouble.
I want to create excel chart by using data available on excel file whichever i have created by using Gembox programatically. Is anybody knows the solution.
...
|
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 my code and tell me
how to fix it.
Thanks
The Mad Ape
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |