<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Writing to Ms Word File</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Writing to Ms Word File]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 06:45:31 +0000</pubDate>
  <lastBuildDate>Fri, 12 Aug 2011 20:51:39 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=1924</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Writing to Ms Word File : Again:QuickPDF is for pdf not...]]></title>
   <link>http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8217.html#8217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1924<br /><strong>Posted:</strong> 12 Aug 11 at 8:51PM<br /><br />Again:<br>QuickPDF is for pdf not for html or doc.<br><br>]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 20:51:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8217.html#8217</guid>
  </item> 
  <item>
   <title><![CDATA[Writing to Ms Word File : Iwant to writea whole User Control...]]></title>
   <link>http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8216.html#8216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1672">MoneyRan</a><br /><strong>Subject:</strong> 1924<br /><strong>Posted:</strong> 12 Aug 11 at 6:04PM<br /><br /><DIV>I&nbsp;want to write&nbsp;a whole User Control to a file. This is what I am doing:</DIV><DIV>&nbsp;</DIV><DIV>Convert the Control to HMTL:</DIV><DIV>&nbsp;</DIV><DIV>Dim SB As New StringBuilder()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim SW As New StringWriter(SB)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim htmlTW As New HtmlTextWriter(SW)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; States1.RenderControl(htmlTW)</DIV><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim DataGridHtml As String = SB.ToString()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim path As String = ConfigurationManager.AppSettings("appPath").ToString()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Dim extension As String = ".html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim filename As String = "ApplicationConfirmation_" &amp; txtName.Text</P><DIV>Try to print the HTML on a document:</DIV><DIV><BR>&nbsp;This is what I had been doing:</DIV><P>'Dim open As Integer = QP.LoadFromFile(path + filename + ".doc")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'QP.SetOrigin(1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'QP.DrawText(10, 100, 400.0, DataGridHtml)&nbsp;&nbsp; &lt;--- tried DrawHTMLText for PDF file<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Dim save As Integer = QP.SaveToFile(path + filename + ".doc")</P><P><BR>&nbsp;This is what I started doing and works perfectly:</P><P>Dim writer As StreamWriter<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer = File.CreateText(path + filename + ".html")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer.WriteLine(DataGridHtml)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer.Close()&nbsp;</P><P>QuickPDf wrote HTML perfectly to an MS Word document along with some garbage Headers and Footers. <BR>But since the HTML had table tags and everything in it, it did not write properly to a PDF file. <BR>I just need to create a file, regardless of the application type. I have been using QuickPDf in other parts of my application,<BR>so I wanted to stick to PDF file. But I had to change it.&nbsp; Still, if there is any way to modify those headers,&nbsp; I will appreciate some idea of how to go about doing it.</P><span style="font-size:10px"><br /><br />Edited by MoneyRan - 12 Aug 11 at 6:15PM</span>]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 18:04:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8216.html#8216</guid>
  </item> 
  <item>
   <title><![CDATA[Writing to Ms Word File :   Can you post a code sample...]]></title>
   <link>http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8213.html#8213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1924<br /><strong>Posted:</strong> 12 Aug 11 at 3:16PM<br /><br /><div><br></div><div>Can you post a code sample so we can see what you are doing ? &nbsp;As Ingo mentioned Quick PDF Library does not work with Word Documents.</div><div><br></div><div>Could it be that you are using MS Word to save your document to PDF and then using Quick PDF to load the PDF file and add extra text to it ?</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 15:16:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8213.html#8213</guid>
  </item> 
  <item>
   <title><![CDATA[Writing to Ms Word File : Actually, what I am writing in...]]></title>
   <link>http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8210.html#8210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1672">MoneyRan</a><br /><strong>Subject:</strong> 1924<br /><strong>Posted:</strong> 12 Aug 11 at 2:14PM<br /><br />Actually, what I am writing in the file is completely HTML. I tried writing it on PDF, but it comes up as HTML code. I looked up the DrawHTMLText, but apparently it does not support all the tags, hence the Word Document. I have been looking in the function reference for a function that will allow me to modify these headers and footers, but nothing yet.]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 14:14:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8210.html#8210</guid>
  </item> 
  <item>
   <title><![CDATA[Writing to Ms Word File : Hi!A bit curious ;-)DrawText (and...]]></title>
   <link>http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8208.html#8208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1924<br /><strong>Posted:</strong> 12 Aug 11 at 9:48AM<br /><br />Hi!<br><br>A bit curious ;-)<br>DrawText (and the whole QuickPDF-lib) is made for pdf-creation and<br>not for word-documents.<br><br>Cheers and welcome here,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 09:48:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8208.html#8208</guid>
  </item> 
  <item>
   <title><![CDATA[Writing to Ms Word File : Hi,   In my program I am opening...]]></title>
   <link>http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8207.html#8207</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1672">MoneyRan</a><br /><strong>Subject:</strong> 1924<br /><strong>Posted:</strong> 11 Aug 11 at 10:59PM<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>&nbsp;In my program I am opening a Word .doc document, using DrawText to write information on it and then save it sing SaveToFile function.</DIV><DIV>&nbsp;</DIV><DIV>When I open the file in MSWord, all the text that I worte is visible, but on the top and bottom, there is some header adn footer information which loks like garbage. Is there any way to remove that or make it invisible?</DIV>]]>
   </description>
   <pubDate>Thu, 11 Aug 2011 22:59:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/writing-to-ms-word-file_topic1924_post8207.html#8207</guid>
  </item> 
 </channel>
</rss>