Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2006, 12:09 PM
LadyReader LadyReader is offline
Novice
escape characters
 
Join Date: Sep 2006
Posts: 2
LadyReader
Default escape characters


I am using VS2005, vb.net. In my program I build some HTML, save it to a file (myPath = something.htm) and then use WORD to print it:

Code:
Try
            thisDoc = myWORD.Documents.Add()
            With thisDoc.Range.PageSetup
                .Orientation = wdOrientLandscape
            End With
            thisDoc.Range.InsertFile(myPath)
            thisDoc.PrintOut(False)           
Catch ex As Exception
            MsgBox("Failed to create Word" & vbCrLf & ex.ToString)
            Return False
        Finally
            CleanUpCOMObjects(myWord, thisDoc)
        End Try
The problem:
In my HTML there is a table which sometimes contains text delimited by "<*" and "*>". For example:
<table>
<tr>
<td>
<* Help *> xyz
</td>
</tr>
</table>

If the text happens to not contain delimited text the technique works well. However, if there is delimited text, when I print this document the text between the delimiters does not print and the page only contains the "xyz". Moreover, opening the save htm file with IE does show all of the text, delimited and non-delimited. Enabling the use of these specific delimiters is a user requirement.

Is there a way to edit this to allow the delimited text to print? Or, alternatively, is there a WORD option I can set programatically that will allow the same thing?

Thanks,
LadyReader
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
special/escape/insertion characters in word manojbmsce Word 0 09-25-2008 06:40 AM
escape characters Making sure the correct number of characters are entered. leroytrolley Excel 1 07-25-2008 06:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2022 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft