Posts

Showing posts from April, 2010

Quazi Mainul Hasan - Portfolio

Image
Launching Quazi Mainul Hasan :)

html to Word Document Converter using Open XML SDK

By using Open XML SDK 2.0 you can generate the word document without using Interop dlls and without the requirement to install Office in your web server. I have done it successfully with the help of my colleagure Yesha Gupta and below is the code to generate the word document from the html code.
GenerateWordDocument()
publicvoid generateWordDocument() { WindowsIdentity currentUserIdentity = (WindowsIdentity)User.Identity; WindowsImpersonationContext impersonationContext = currentUserIdentity.Impersonate(); try { string fileName = currentUserIdentity.Name.Replace("\\", "_") + "_Report.docx"; string filePath = "~/assets/Templates/" + fileName; File.Copy(Server.MapPath("~/assets/Templates/WordDocTemplate.docx"), Server.MapPath(filePath)); DataView view = frontMatterSqlDataSource.Select(DataSourceSelectArguments.Empty) as DataView; string pageTitle = ""; using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(Server.…

YAGO - Yet Another Great Ontology

For more information on yago, please visit: www.mpi-inf.mpg.de/yago-naga/yago/

Computing Semantic Relatedness using Wikipedia based Explicit Semantic Analysis (ESA)

Different Types of Soccer Stretching Exercise

Image