View Complete Post
in my asp.net web application i am dynamically generating a word documnet out of a sql data. I have set the char set UTF-8 during the doument creation in code but still when i open the generated document and check it char set .. it is always windows-1252 not the one that i have set. My sql data in the document have special characters whihc can only be understandable using the UTF-8 charset otherwise its always ?T written in place of an apostrophy . Pasting my code here..
HttpContext.Current.Response.ContentType = "application/msword";
HttpContext.Current.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8;
HttpContext.Current.Response.Charset = "utf-8";
string strFileName = "Details" + ".doc";
HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
StringBuilder strHTMLContent = new StringBuilder();
string strMessage = " ";
DataView abstractview = (DataView)dsAbstract.Select(DataSourceSelectArguments.Empty);
foreach (DataRowView row1 in abstractview)
strMessage += "<table border='1' cellspacing='0' cellpadding='5' width
I am using ASP.NET and C# 2.0 and working on web application.
I want to embed a word document inside a excel sheet.
How to embed word document inside excel.
Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.
MSDN Magazine April 2008
The last time I wrote this column (March 2006), I shared an application that allows you to update all the MicrosoftÃÂ® Word documents in a folder and its subfolders. Each time the application finds a document in the specified path, it updates the document properties to match those you specified in the application.
MSDN Magazine June 2006
At the beginning of another lovely day of writing courseware in mad pursuit of unrealistic deadlines, I received a frantic call from a business partner. He was at the end of a long consulting project and had several hundred MicrosoftÃÂ® Word documents, all of which required their document properties to be set identically, except the Title property of the document, which was to be based on the document file name, minus the .
MSDN Magazine March 2006
Starting in Visual Studio 2005, XML documentation support will become available in Visual Basic and C++ as it has been for C#. However, making full use of the many comment tags will take a little extra work In this article, the author shows how Visual Studio macros can be used to automate the creation of XML documentation and creates macros that write large sections of comments with just a keystroke.
MSDN Magazine July 2005
Windows SharePoint Services helps improve collaboration and workflow while protecting documents and intellectual property. But one feature is conspicuously missing - an easy way to back up and restore deleted files from document libraries. In this article, the authors take advantage of the extensibility of WSS and its server-side and client-side object models to build a restore feature that works like the Recycle Bin in Windows Explorer.
Maxim V. Karpov and Eric Schoonover
MSDN Magazine February 2005
Edited by Nancy Michell
MSDN Magazine August 2002
MSDN Magazine June 2000
ÃÂ IÃÂ´m currently programming a web search application in ASP.Net and having problem with full text searching. My requirements are:
1. Save a byte array from SQL server to word document as a temp file in a server side?
2. How to highlight the string I am currently searching in the Word document and return to the user the sentence with the highlighted string (like on Bing or any other search engines)? Is it possible to fullfill this requirement with full-text search integrated in SQL Server 2008?
Thanks in advance,Regards,
I have built a routine which takes a byte() array and passes it to iTextSharp for rendering as a PDF. This is working just fine.
However, in my application, users want to be able to select multiple documents and have the program render them as a single, combined PDF.For the purpose of this discussion, let's say they chose two documents. I form the byte() array containing the data of the first document and then, I increase the size of that byte() array and load the second document's data into one. The result is that I have a single combined byte() array which I now want to render.
However, when the PDF viewer opens (in runtime), it's only showing me the first document (as if there is no more data in the byte() array to render).My thinking is that perhaps it's picking up the End Of File (EOF) marker and therefore not rendering the data past that point in the byte() array.
Any thoughts on this? Here's my code.
Prior to the For/Next construct, I have a dataset already containing a list of documentId's from a database that works with my EDM package.A webservice call returns the byte() array for each document in my dataset into mb() and I use mbbnew() to build the combined byte() array for the documents requested by the user.
Just to be clear,