-
content control vsto font getting changed
Hi All,
I have few content controls that I am populating with data. But in one content control, the font sometimes getting changed from whatever expected. It is happening in rare scenarios.
Is there any problem with the content control ? Below is the code we are trying to paste in the content control:-
contentControlData = "
<
table align= "left" style="WIDTH: 95%; FONT-FAMILY: Times New Roman; FONT-SIZE: 16px;vertical-align:text-top;" border=0 cellSpacing=0 cellPadding=0 > <tbody> <tr align="left" style="width: 60px"> <td style="width: 15%"> </td> <td style="width: 21%" align='center'><b>FY 2012</b></td> <td></td> </tr> <tr align="left" style="width: 60px"> <td style="width:15%"> </td> <td style="border-top-style: solid;border-top-width:1px;border-top-color: #000000; border-top:1px;border-left:0px;border-right:0px;border-bottom:0px;width:21%;"><B>Request No.:</B> 117326</td> <td> </td> </tr> </tbody> </table>
"
HtmlFragment.CopyToClipboard(ReplaceSpecialCharacters.ReplacingSpecialCharacters(contentCo ntrolData).Replace("<center>", "").Replace("</center>", ""));
contentControls.get_Item(ref i).Range.Select();
Globals.ThisAddIn.Application.ActiveDocument.Application.Selection.PasteSpecial(ref missingVal, ref missingVal,ref missingVal, ref missingVal, ref typeHtml, ref missingVal, ref missingVal);
Inspite of giving FONT-SIZE : 16px, it is taking 6 px ..
Reply is appreciated.
Thanks,
DS
Similar Threads
-
By patrickH80 in forum C++
Replies: 1
Last Post: 12-26-2006, 08:55 PM
-
By Urbaud in forum VB Classic
Replies: 2
Last Post: 09-27-2006, 01:48 PM
-
Replies: 1
Last Post: 08-01-2006, 01:12 AM
-
Replies: 0
Last Post: 05-15-2002, 09:38 AM
-
Replies: 15
Last Post: 05-09-2001, 04:40 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks