c# Programming Glossary: doc
iTextSharp - Sending in-memory pdf in an email attachment http://stackoverflow.com/questions/1196059/itextsharp-sending-in-memory-pdf-in-an-email-attachment a ASP.Net page and get Cannot Access a Closed Stream . var doc new Document MemoryStream memoryStream new MemoryStream PdfWriter.GetInstance.. memoryStream new MemoryStream PdfWriter.GetInstance doc memoryStream doc.Open doc.Add new Paragraph First Paragraph.. new MemoryStream PdfWriter.GetInstance doc memoryStream doc.Open doc.Add new Paragraph First Paragraph doc.Add new Paragraph..
ADO.NET |DataDirectory| where is this documented? http://stackoverflow.com/questions/1409358/ado-net-datadirectory-where-is-this-documented DataDirectory where is this documented In AppConfig it is possible to use DataDirectory but.. it is possible to use DataDirectory but I can't find any doc c# ado.net datadirectory share improve this question DataDirectory..
XDocument or XMLDocument http://stackoverflow.com/questions/1542073/xdocument-or-xmldocument tell me why you would use one over another c# xml xmldocument xdocument share improve this question If you're using.. me why you would use one over another c# xml xmldocument xdocument share improve this question If you're using .NET version.. XDocument aka LINQ to XML. It's much simpler to create documents and process them. For example it's the difference between..
How to deal with XML in C# http://stackoverflow.com/questions/220867/how-to-deal-with-xml-in-c-sharp with XML in C# So what is the best way to deal with XML documents XSD and all that stuff in C# 2.0 What classes to use etc... Like what are the best practices of parsing and making XML documents etc. EDIT .Net 3.5 suggestions are also welcome. c# .net.. the XmlReader it accepts. Loading XML Directly XmlDocument document new XmlDocument document.LoadXml People Person Name 'Nick'..
What is the best way to build XML in C# code? [closed] http://stackoverflow.com/questions/284324/what-is-the-best-way-to-build-xml-in-c-sharp-code Nested data Or the same with XmlDocument XmlDocument doc new XmlDocument XmlElement el XmlElement doc.AppendChild doc.CreateElement.. XmlDocument doc new XmlDocument XmlElement el XmlElement doc.AppendChild doc.CreateElement Foo el.SetAttribute Bar some value.. new XmlDocument XmlElement el XmlElement doc.AppendChild doc.CreateElement Foo el.SetAttribute Bar some value el.AppendChild..
HTML Agility Pack strip tags NOT IN whitelist http://stackoverflow.com/questions/3107514/html-agility-pack-strip-tags-not-in-whitelist ConvertHtmlToNode string html HtmlAgilityPack.HtmlDocument doc new HtmlAgilityPack.HtmlDocument doc.LoadHtml html if doc.DocumentNode.ChildNodes.Count.. doc new HtmlAgilityPack.HtmlDocument doc.LoadHtml html if doc.DocumentNode.ChildNodes.Count 1 return.. doc new HtmlAgilityPack.HtmlDocument doc.LoadHtml html if doc.DocumentNode.ChildNodes.Count 1 return doc.DocumentNode.ChildNodes..
Comparison of XSD Code Generators http://stackoverflow.com/questions/386155/comparison-of-xsd-code-generators common includes and How can I generate comments from xs documentation tags in a wsdl I have found the following options.. . Our main driver was that xsd.exe does not generate XML doc from the XSD annotations which we wanted as we have hundreds.. some arguments to be in a certain order as well as some undocumented dependencies eg automatic parameters .NET version are..
How to SET extended file properties? http://stackoverflow.com/questions/5337683/how-to-set-extended-file-properties to SET value only for Company field for some Word .pdf documents. c# share improve this question Ok here is answer.. files set to FALSE. 3 How to use creates new class of oledocumentproperties var doc new OleDocumentPropertiesClass open yout.. How to use creates new class of oledocumentproperties var doc new OleDocumentPropertiesClass open yout selected file doc.Open..
How do I convert Word files to PDF programmatically? http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically open source freeware programs that allow you to convert .doc files to .pdf files but they're all of the application printer.. programs that do have an SDK allowing you to convert .doc files to .pdf files but they're all of the proprietary type.. Save As PDF add in installed. It searches a directory for .doc files opens them in Word and then saves them as a PDF. Note..
How to access session variables from any class in ASP.NET? http://stackoverflow.com/questions/621549/how-to-access-session-variables-from-any-class-in-asp-net throughout your application e.g. Session loginId you can document your session items by adding XML doc comments on the properties.. loginId you can document your session items by adding XML doc comments on the properties of MySession you can initialize your..
HTML Agility pack - parsing tables http://stackoverflow.com/questions/655603/html-agility-pack-parsing-tables Pack http www.codeplex.com htmlagilitypack HtmlDocument doc new HtmlDocument doc.LoadHtml @ html body p table id foo tr.. htmlagilitypack HtmlDocument doc new HtmlDocument doc.LoadHtml @ html body p table id foo tr th hello th tr tr td.. td world td tr table body html foreach HtmlNode table in doc.DocumentNode.SelectNodes table Console.WriteLine Found table.Id..
Json.NET: convert JSON string to XML or XML to JSON string http://stackoverflow.com/questions/814001/json-net-convert-json-string-to-xml-or-xml-to-json-string contained in string xml into a JSON string XmlDocument doc new XmlDocument doc.LoadXml xml string jsonText JsonConvert.SerializeXmlNode.. xml into a JSON string XmlDocument doc new XmlDocument doc.LoadXml xml string jsonText JsonConvert.SerializeXmlNode doc.. xml string jsonText JsonConvert.SerializeXmlNode doc To convert JSON text contained in string json into an XML node..
How to model a Many to many-relationship in code? http://stackoverflow.com/questions/1103693/how-to-model-a-many-to-many-relationship-in-code a database model For an object model there's no reason a Doc can't have a List Owner and an owner have a List Dog . Only..
In C#, sign an xml with a x.509 certificate and check the signature http://stackoverflow.com/questions/1195728/in-c-sign-an-xml-with-a-x-509-certificate-and-check-the-signature csp.FromXmlString PublicKeyXml bool isValid VerifyXml xmlDoc rsa2 And the VerifyXml calls CheckSignature . It looks something.. It looks something like this private Boolean VerifyXml XmlDocument Doc RSA Key Create a new SignedXml object and pass it the.. something like this private Boolean VerifyXml XmlDocument Doc RSA Key Create a new SignedXml object and pass it the XML document..
How to read attribute value from XmlNode in C#? http://stackoverflow.com/questions/1600065/how-to-read-attribute-value-from-xmlnode-in-c I do that XmlTextReader reader new XmlTextReader path XmlDocument doc new XmlDocument XmlNode node doc.ReadNode reader foreach.. reader new XmlTextReader path XmlDocument doc new XmlDocument XmlNode node doc.ReadNode reader foreach XmlNode chldNode.. foreach XmlNode item in node.ChildNodes XMl Doc Root Employee Name TestName Childs Root c# .net xml share..
Writing a CSV file in .net http://stackoverflow.com/questions/1684667/writing-a-csv-file-in-net with some more detailed CSV rules http www.creativyst.com Doc Articles CSV CSV01.htm A neat 3rd party library is Linq to CSV..
Is this a well known design pattern? What is its name? http://stackoverflow.com/questions/2637268/is-this-a-well-known-design-pattern-what-is-its-name of the pattern Sun Developer Network How to Write Doc Comments for the Javadoc Tool Notice the methods and constructors..
How can I embed any file type into Microsoft Word using OpenXml 2.0 http://stackoverflow.com/questions/3322247/how-can-i-embed-any-file-type-into-microsoft-word-using-openxml-2-0 examples out there that show how to embed an Office Document into another Office Document using OpenXml 2.0 what ™s not.. show how to embed an Office Document into another Office Document using OpenXml 2.0 what ™s not out there and easily understandable.. is how to embed just about any file into and Office Document. I have learned a lot from other people ™s code so this..
Generate HTML / Help files from VS 2010 C# XML documentation http://stackoverflow.com/questions/4781784/generate-html-help-files-from-vs-2010-c-sharp-xml-documentation some commercial tools such as .Net documentation tool VSDocman I am sure there are more I just list these two as examples... combo works great. Thanks to all who helped. Some remarks NDoc seems to be outdated last updates are from 2005. That's why.. also very detailed can be found here How to turn C# Xml Doc Comments into something useful Thanks for the hint There are..
Deserialization Error: The XML element 'name' from namespace '' is already present in the current scope http://stackoverflow.com/questions/523245/deserialization-error-the-xml-element-name-from-namespace-is-already-prese class Serializer public static Album CreateAlbumFromXMLDoc XmlDocument doc Create an instance of a serializer var serializer.. Serializer public static Album CreateAlbumFromXMLDoc XmlDocument doc Create an instance of a serializer var serializer.. XML that I am trying to Deserialized copied from the Xml Doc object being passed into the CreateAlbumFromXMLDoc method when..
is there a way to read a word document line by line http://stackoverflow.com/questions/6924056/is-there-a-way-to-read-a-word-document-line-by-line Word.Application word new Word.Application doc word.Documents.Open @ C SampleText.doc doc.Activate foreach Word.Range.. object although where he's getting the Doc object is beyond me. I would assume you create it with the ApplicationClass... would assume you create it with the ApplicationClass. EDIT Document is retrieved by calling this Word.Document doc wordApp.Documents.Open..
extract image from word file http://stackoverflow.com/questions/7937487/extract-image-from-word-file Microsoft.Office.Interop.Word.Document oDoc new Microsoft.Office.Interop.Word.Document oWord.Visible.. Microsoft.Office.Interop.Word.Document oDoc new Microsoft.Office.Interop.Word.Document oWord.Visible false.. oDoc new Microsoft.Office.Interop.Word.Document oWord.Visible false object str1 C doc.doc oDoc oWord.Documents.Open..
using ITextSharp to extract and update links in an existing PDF http://stackoverflow.com/questions/8140339/using-itextsharp-to-extract-and-update-links-in-an-existing-pdf pdf in di.GetFiles .pdf string contents string.Empty Document doc new Document PdfReader reader new PdfReader pdf.FullName.. .pdf string contents string.Empty Document doc new Document PdfReader reader new PdfReader pdf.FullName using MemoryStream.. WorkingFolder Create our sample PDF using iTextSharp.text.Document Doc new iTextSharp.text.Document PageSize.LETTER using..
Padding is invalid and cannot be removed? http://stackoverflow.com/questions/8583112/padding-is-invalid-and-cannot-be-removed is where the exception occurs public void Cryptography XmlDocument doc bool cryptographyMode RijndaelManaged key null try.. the key. if key null key.Clear private void Decrypt XmlDocument doc SymmetricAlgorithm alg Check the arguments. if doc.. the arguments. if doc null throw new ArgumentNullException Doc if alg null throw new ArgumentNullException alg Find the EncryptedData..
Reading doc and docx files using C# without having MS Office installed on server http://stackoverflow.com/questions/14455268/reading-doc-and-docx-files-using-c-sharp-without-having-ms-office-installed-on-s project asp.net c# vb 2010 .net 4 and I need to read both DOC and DOCX files that I've previosly uploaded I've done uploading.. asp.net c# vb 2010 .net 4 and I need to read both DOC and DOCX files that I've previosly uploaded I've done uploading part.. a server. c# docx doc share improve this question For DOC you can use open source library NPOI . For DOCX I'd suggest..
C# - Delete files from directory if filename contains a certain word http://stackoverflow.com/questions/1620366/c-sharp-delete-files-from-directory-if-filename-contains-a-certain-word string filesToDelete @ DeleteMe .doc Only delete DOC files containing DeleteMe in their filenames string fileList..
How to load MS Word document in C# (.NET)? http://stackoverflow.com/questions/215620/how-to-load-ms-word-document-in-c-sharp-net Word I just want that text inside. You gave me answer for DOCX but what about DOC I want free and high performance solution.. text inside. You gave me answer for DOCX but what about DOC I want free and high performance solution not to open 12.000..
Validating file types by regular expression http://stackoverflow.com/questions/374930/validating-file-types-by-regular-expression does this is ^ a zA Z 2 w w w . .jpg .JPG .gif .GIF .doc .DOC .pdf .PDF However this does not seem to be working...Can anyone.. should work note the escaped dots ^. . jpg JPG gif GIF doc DOC pdf PDF You can use a tool like Expresso to test your regular..
How to display PDF or Word's DOC/DOCX inside WinForms window? http://stackoverflow.com/questions/511046/how-to-display-pdf-or-words-doc-docx-inside-winforms-window to display PDF or Word's DOC DOCX inside WinForms window I'm wondering what's the best option.. to display PDF or Word's DOC DOCX inside WinForms window I'm wondering what's the best option..
Determining MIME Type of MAC upload stream file http://stackoverflow.com/questions/8734832/determining-mime-type-of-mac-upload-stream-file and or appropriate extension allowable files RTF TXT PDF DOC DOCX it seems like the ContentType comes back as application.. or appropriate extension allowable files RTF TXT PDF DOC DOCX it seems like the ContentType comes back as application octet..
|