.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

convert doc to html and display it

Posted By:      Posted Date: September 25, 2010    Points: 0   Category :ASP.Net

i have create a small program that upload a document to a file path and then convert it to an html doc in whith it create me an html file and a folder with the same name that include the style of the document and photos if in the original document they are any photos.

what i want to know is if we upload the document and they are photos when i click on the html file that is been create i can see the photos, but when i include the html file in my asp.net code i can not see the photos and only the text document is been show.

is it possible to view and the photo or not?


View Complete Post

More Related Resource Links

How to Convert HTML to Image


 HI all,

I was struggling for the process/code to convert html to image. Please suggest any tutorials for this. And also any code help greatly appreciated.


thanks and regards,



Convert html to pdf using iTextSharp


can anyone provide me a sample code who have used iTextsharp(chapter 0707) to convert HTML to PDF.... Please help.... urgent...!!!

Want to convert html page into pdf format & send same pdf as a attachment

Dear All i want to convert html page into pdf format & i have to send that same pdf  by attachment,if some one has the sample code , please send me

display codes (asp or html) on web page

hello.....i am wishing to display asp or html codes on my web page. actually i am working on article project and article includes codes too. still i am using <iframe> but not looking soo good.i am also wishing to dispaly codes in a way that can be expand or collapsed using (+) sing, as you also know. or tell me any alternative to accomplish. thanks in advance

convert html to pdf on the fly

hi all, i want to convert html to pdf on the fly without creating file on sever  and the pdf file appears to user to be open dirct how can i do it?

Razor. Display conditional Html

Hello,I have the following code on a View using Razor view engine: @if(View.Section == CMSSection.Home) { Html.ActionLink("Home", MVC.CMS.Home.Index()) } else { <span>Home</span> }I keep getting the error:Compiler Error Message: CS1002: ; expectedWhat am I missing?Thank you,Miguel

How to convert HTML to RTF



I am working on one application and i need to convert the data from HTML to RTF format.

I am having some tools which are converting the HTML to RTF format.But i want to do it from application(Using Visual Studio 2005).

I am working on asp.net 2.0 and i need to convert HTML to RTF format from here only.

can any one help me in doing this.

 Best Regards,

How to convert .html format data to normal text using Regular Expressions?

How to convert .html format data to normal text using Regular Expressions?

Display html.actionlink through c


Hello guys,

I am noob and am trying to display Html.Actionlink through controller(MVC). Here is the example what am trying to do...

public string test(){

     string testString = "<%: html.ActionLink('click', 'test', new AjaxOptions() { UpdateTargetId = 'test' }) %>";

     return testString;


i want to display testString in view. but am not getting the actionlink in view..i can display anchors which is given below:-

public string test(){

     string testString = "<a href ="test"> click here</a>";

     return testString;


Hope reader is understanding what am trying to say...

any help would be appreciated.



How to convert from HTML in aspx form?


This code works only in HTML format. This means that I can not select standard components:
"Inserting an ASP.NET control will convert the HTML form in the page to an ASP.NET form and remove its current properties. Do you want to insert the ASP.NET control?"

When converted following code does not work anymore.
I'd like that code works in ASP.NET mode.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_scripts_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<script src="jquery-1.2.6-vsdoc.js" type="text/javascript"></script>
<script src="jquery-1.2.6.js" type="text/javascript"></script>
<script src="JScript.js" type="text/javascript"></script>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <meta name="robots" con

Html Display


I am passing JSON data to client side usign ajax call

In callback i get the result like

 success: function (txt) {

ln list there is two other list Grade,Title

Like list --> Grade --> 2,3
       Title --> Maths,Science

now i want to make Html for this

like Grade, Course
      2   Maths
 3   Science

How can i achive this using jQuery or JS to make html and display it

Display Binary PDf in HTML/Text



I am saving user uploaded PDF files in SQL server using varbinary datatype. There is totally no problem in saving in binary and retrieving in PDF. But due to one specific requirement (which i cant change) i to need to fetch binary PDF and display in HTML or atleast get in string form.

Is it possible? If yes how.

Rite now i m opening PDF files like code written below. But it opens a PDF reader in browser. I want to display the data of PDF in plain text instead in PDF reader.

bytedata = (byte[])dsPrograms.Tables[0].Rows[0]["PDFFile"];
                PdfReader pdfReader = new PdfReader(bytedata);
                Response.ContentType = "application/pdf";
                PdfStamper pdfStamper = new PdfStamper(pdfReader, Response.OutputStream, '\0', true);
                AcroFields pdfFormFields = pdfStamper.AcroFields;
                AcroFields docFields = pdfStamper.AcroFields;
                pdfStamper.FormFlattening = false;

SharePoint Server 2010 - API to convert word docs to FILTERED HTML


Using word automation services, we cannot convert a doc/docx to FILTERED html, which can be done on client side using "saveas".

Is there any unexposed API through which one can achieve this using SharePointServer2010 + c# programatically.

or any alternative way to get FILTERED HTML format file from doc/docx?

I knew the way to do this as a client side application. This can be acheived simply by recording macros.

Ref: http://tudorstoian.blogspot.com/2008/02/word-automation.html

I want sharepoint 2010 server side way to do this task.

how to convert simple html to asp.net control( server side useing C#,Jquery,xml,xslt)


input form 
<FORM METHOD=POST ACTION="mailto:someone@$nailmail.com" ENCTYPE="text/plain"> <table border=0 cellspacing=0 cellpadding=2> <tr> <td colspan=2> <font size=2 face="arial" color="#000000"> <INPUT type="text" name=URL size=17 value="http://"> :Your URL<BR> <INPUT type="text" name=user size=17> :Your Username<BR> <INPUT type="text" name=email size=17> :Your E-mail </font> </td> </tr> <tr> <td> <font size=1 face="arial" color="#000000"> <INPUT name=subscribe type=radio value="yes" CHECKED> subscribe<BR> <INPUT name=subscribe type=radio value="no"> unsubscribe<BR> </font> </td> <td> <SELECT name="choices" size=1> <OPTION selected> OPTIONS <OPTION> OPTION 1 <OPTION> OPTION 2 <OPTION> OPTION 3 <OPTION> OPTION 4 <OPTION> OPTION 5 </SELECT> </td> </tr> <tr> <td colspan=2> <font size=1 face="arial" color="#000000"> <INPUT type=checkbox name="html" value="sendme" CHECKED> i can recive email as html<BR> <INPUT type=checkbox name="receipt"

convert mhtml to html


Does anyone know how to convert an mhtml file to an html file? If you open an mhtml file in a browser and view the source code it looks like html. But if you grab the source code like below it's mhtml. Embarassed

client = new WebClient();

Publishing HTML and RichTextField display HTML code - not rendering


Hi there, 

I have several custom columns of type "Publishing HTML", and a page layout several controls which point to the columns. :

<SharePointWebControls:RichTextField DisableInputFieldLabel="True"  FieldName="WheelImage" runat="server"></SharePointWebControls:RichTextField>


The problem is that in the end result, the page shows escaped HTML (eg. <p></p>) rather than the rendered output I would expect. 


Oddly - when it edit mode - they render fine, showing the rendered output. But in the 'reader' view, it shows the raw HTML. 


I have also checked the 'edit html source' in edit mode - and it looks fine, like HTML. But the browser source of the output page shows escaped html: &lt;br/&gt;


I found this describing the same problem, but its not a solution - as this happens on any browser:




Anyone any ideas?






Convert text to HTML



I'm using WPF and dotnet 3.5 for my application. Now I want to convert a string value to html. In this case it's only about all special letters as & % å ä ö etc, since the rest is already in html. How to do this? I have seen articles about htmlencoder, but in wpf and dotnet 3.5 I can't find this object.

Please help

Magnus Burk
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend