<![CDATA[ your value ]]> ******* append this in stringbuilder
link
http://www.xml.com/pub/a/2003/01/29/qa.html
this.EnableViewState = false; HttpContext.Current.Respons... = System.Text.Encoding.UTF8; HttpContext.Current.Respons... = "text/XML"; HttpContext.Current.Respons... HttpWebRequest request = (HttpWebRequest)WebRequest.... // change the url request.Credentials=new NetworkCredential("sample name","password","domain"); HttpWebResponse response = (HttpWebResponse)request.Ge... (); Stream ......
How to save a file on client side? create an asp page "Download.aspx" In Design side just have <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Download.aspx.cs" Inherits="Download" ContentType="Text/xml" %> Code on CS side ********** string strFile= ""; if (Request.QueryString.HasKey... { if ((Request.QueryString["vid"] != null) || Request.QueryString["vid"].... // where vid is your querystiing { strFile= Request.QueryString["vid"].... } } try { this.EnableViewState ......
this is a single way to sign a document
*********************************
ThisApplication.ActiveDocument.Signatures.Add();
ThisApplication.ActiveDocument.Signatures.Commit();
public { Word. void AddWatermark()Application wordApp = null;// applicationObject = application; // object oname = applicationObject.GetType()... BindingFlags.GetProperty, null, applicationObject, null); { wordApp = (Word. } { Word. doc.ActiveWindow.ActivePane... Microsoft.Office.Interop.Word. Word. Word. doc.Sections[1].Range.Selec... doc.ActiveWindow.ActivePane... = Word. wmShape = mSelection.HeaderFooter.Sha... wmShape.Select( ActiveWindow.ActivePane.Vie... ......
public static byte[] getFileContent(string fileUrl) { Stream stream1 = new FileStream(fileUrl, FileMode.Open, FileAccess.ReadWrite); byte[] buffer1 = new byte[stream1.Length]; stream1.Read(buffer1, 0, (int) stream1.Length); stream1.Close(); return buffer1; } ......