|
Hi,
Programatically I want to convert html file into tiff file.Can any body please help me how to do this using c#?I want to use this code in windows forms application. I just tried like below.
Image img = Image.FromFile(InputFile);
img.Save(OutputFile, ImageFormat.Tiff);
InputFile is a variable which is having path of a input html file. OutputFile is also a variable which is having path of output file.
When the first statement executed I am getting following exception.
"System.OutOfMemoryException: Out of memory"
Thanks in advance.
modified 14-Nov-12 7:41am.
|
|
|
|
|
See here[^], you cannot load an HTML file into an Image object, the file must be a valid image type.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi Richard,
Can you please tell me how to convert a html file into tiff format using C# code programmatically?
|
|
|
|
|
It's easy enough to find. Click this[^].
|
|
|
|
|
Downvoted this because you just repeated your initial question without apparently having read the content of the post you replied to.
HTML is not an image format. What you are asking makes no sense.
|
|
|
|