Convert html code in image
Spire.Doc can help users use C#/VB.NET to convert HTML to Image. This solution enables users to read HTML at anytime and anywhere with their portable devices such as cell phones, MP4 players, PSP, iPad, iTouch, etc. Follow the simple steps below to use C#/VB.NET to convert HTM to image. Download Spire.Doc Here
Friendly Reminder: Please make sure Spire.Doc and Visual Studio are correctly installed on system.
Step 1: Create a C#/VB.NET project in visual studio add Spire.Doc.dll as reference. The default setting of Spire.Doc.dll is placed under "C:\Program Files\e-iceblue\Spire.Doc\Bin". Select assembly Spire.Doc.dll and click OK to add it to the project.
Step 2: Add a "Button" to Form1. Double click the button, add the following codes in the top of file.
Step 3: Use the code below to load HTML file which we will convert to image.
Step 4: Spire.Doc presents an easy solution to convert HTML to image. The following code can help users easily convert HTML to image. Spire.Doc enables users to convert HTMl to BMP, JPEG, PNG, GIF, Tiffï¼etc.
Press F5 to start the project and we can find the image in the project folder, bin â debug.