¡@

Home 

c# Programming Glossary: format

How can a Word document be created in C#? [closed]

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c

where I would like to generate a report export in MS Word format. The report will include images graphs tables and text. What.. to want to use one of the XML based office generation formats as there are know issues when using Office Automation on a.. using Office Automation or using the Office Open XML format see links below which is supported by Microsoft Office 2000..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

departed the server for the client in 64 bit timestamp format. const byte serverReplyTime 40 Get the seconds part ulong intPart..

Create Excel (.XLS and .XLSX) file from C# [closed]

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp

I am handling this but I would like to control the output formats. EDIT I am still looking at these to see the best alternative.. achieve with CSV files. I will look more into the 2003 xml format but that also puts a Excel 2003 requirement on the file. I am.. Excel Writer that will allow some pretty good XLS data and formatting and it is in the Excel_97 compatible format that all modern..

C# - Convert UTC/GMT time to local time

http://stackoverflow.com/questions/179940/c-sharp-convert-utc-gmt-time-to-local-time

is a DateTime field. The server returns a field in GMT format i.e. with a Z at the end. However we found that .NET seems to..

Parse DateTime with timezone of form PST/CEST/UTC/etc

http://stackoverflow.com/questions/241789/parse-datetime-with-timezone-of-form-pst-cest-utc-etc

The problem is what should I use for the '...' in the format string Looking at the Custom Date and Time Format String MSDN.. and Time Format String MSDN page doesn't seem to list a format string for parsing timezones in PST CEST GMT UTC form. c# .net..

How to fix the flickering in User controls

http://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls

time the control repaints. Use the Format32bppPArgb pixel format for that copy it renders about 10 times faster than any other.. copy it renders about 10 times faster than any other pixel format. Next thing you can do is prevent the holes from being so noticeable..

How do I build a JSON object to send to an AJAX WebService?

http://stackoverflow.com/questions/2737525/how-do-i-build-a-json-object-to-send-to-an-ajax-webservice

JSON object to send to an AJAX WebService After trying to format my JSON data by hand in javascript and failing miserably I realized.. which is where my problem is. How do I build a properly formatted JSON object in javascript so I can plug it in to my ajax.. hard coded test data is fine. How do I build a properly formatted JSON object to send to the web service UPDATE It turns out..

Parsing JSON using Json.net

http://stackoverflow.com/questions/401756/parsing-json-using-json-net

confused as to how to accomplish what I need. Here is the format for the JSON I need to parse through. displayFieldName OBJECT_NAME..

ASP.NET MVC $.post call returning string…need help with format for jqGrid

http://stackoverflow.com/questions/4101116/asp-net-mvc-post-call-returning-string-need-help-with-format-for-jqgrid

MVC .post call returning string&hellip need help with format for jqGrid I'm trying to dynamically populate a dropdown for.. Now the jqGrid wants the values for the dropdown formatted like this value FE FedEx IN InTime TN TNT I'm using the StringBuilder..

How do I get the path of the assembly the code is in?

http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in

I prefer to use CodeBase which gives you the path in URI format then UriBuild.UnescapeDataString removes the File at the beginning..

How to escape brackets (curly braces) in a format string in .NET

http://stackoverflow.com/questions/91362/how-to-escape-brackets-curly-braces-in-a-format-string-in-net

to escape brackets curly braces in a format string in .NET How can brackets be escaped in using string.Format.. there a way to escape the brackets c# .net string parsing formatting share improve this question For you to output foo 1 2..

.NET String.Format() to add commas in thousands place for a number

http://stackoverflow.com/questions/105770/net-string-format-to-add-commas-in-thousands-place-for-a-number

String.Format to add commas in thousands place for a number I want to add.. to add a comma in the thousands place for a number. String.Format c# .net share improve this question http msdn.microsoft.com.. http msdn.microsoft.com en us library fht0f5be.aspx ' Format a negative integer or floating point number in various ways...

How can I create a more user-friendly string.format syntax

http://stackoverflow.com/questions/1322037/how-can-i-create-a-more-user-friendly-string-format-syntax

a very long string in a program and have been using String.Format. The problem I am facing is keeping track of all the numbers.. overload that will accept a syntax similar to this String.Format You are age years old and your last name is name age 18 name.. types domain entities etc static void Main string s Format You are age years old and your last name is name new age 18..

How Do I Generate a 3-D Surface From Isolines?

http://stackoverflow.com/questions/1672176/how-do-i-generate-a-3-d-surface-from-isolines

C h contour X Y Z Create the contours title 'Contour map' Format the coordinate data for the contours Xc Yc Zc index 1 while..

Format Number like Stack Overflow (rounded to thousands with K suffix)

http://stackoverflow.com/questions/2134161/format-number-like-stack-overflow-rounded-to-thousands-with-k-suffix

Number like Stack Overflow rounded to thousands with K suffix.. this question Like this EDIT Tested static string FormatNumber int num if num 100000 return FormatNumber num 1000 K if.. static string FormatNumber int num if num 100000 return FormatNumber num 1000 K if num 10000 return num 1000D .ToString 0.#..

How do I call native C++ from C#?

http://stackoverflow.com/questions/2211867/how-do-i-call-native-c-from-c

EDIT Tried m3rLinEz solution but it's giving me a BadImageFormatException I think it's because the DLL isn't generated. I did.. String^ name gcnew String acUserName return String Format Hello 0 name else return gcnew String Error Now created..

Parse DateTime with timezone of form PST/CEST/UTC/etc

http://stackoverflow.com/questions/241789/parse-datetime-with-timezone-of-form-pst-cest-utc-etc

in the format string Looking at the Custom Date and Time Format String MSDN page doesn't seem to list a format string for parsing..

When is it better to use String.Format vs string concatenation?

http://stackoverflow.com/questions/296978/when-is-it-better-to-use-string-format-vs-string-concatenation

is it better to use String.Format vs string concatenation I've got a small piece of code that.. C rowIndex.ToString null title and xlsSheet.Write string.Format C 0 rowIndex null title Is one better than the other And why.. version doesn't need to parse the format string. Format strings are great for purposes of localisation etc but in a..

Get timestamp from Authenticode Signed files in .NET

http://stackoverflow.com/questions/3281057/get-timestamp-from-authenticode-signed-files-in-net

Logger.LogInfo string.Format Querying file ' 0 ' filename Logger.LogInfo string.Format Encoding.. Querying file ' 0 ' filename Logger.LogInfo string.Format Encoding Type 0 encodingType Logger.LogInfo string.Format Content.. Encoding Type 0 encodingType Logger.LogInfo string.Format Content Type 0 contentType Logger.LogInfo string.Format Format..

Why use String.Format? [duplicate]

http://stackoverflow.com/questions/4671610/why-use-string-format

use String.Format duplicate This question already has an answer here String.. in C# 29 answers Why would anyone use String.Format in C# and VB .NET as opposed to the concatenation operators.. difference Why are everyone so interested in using String.Format I am very curious. c# vb.net share improve this question..

Format a date in XML via XSLT

http://stackoverflow.com/questions/500915/format-a-date-in-xml-via-xslt

a date in XML via XSLT When I use the XML serializer to serialize..

format date in c#

http://stackoverflow.com/questions/501460/format-date-in-c-sharp

DateTime.ToString method Standard Date and Time Format Strings Custom Date and Time Format Strings Some additional.. Standard Date and Time Format Strings Custom Date and Time Format Strings Some additional related information If you want to display.. there is an overload of the ToString method that takes an IFormatProvider DateTime dt GetDate dt.ToString g new CultureInfo en..

Deploy C# ActiveX in a CAB for Internet Explorer use

http://stackoverflow.com/questions/5484326/deploy-c-sharp-activex-in-a-cab-for-internet-explorer-use

How do I convert Word files to PDF programmatically?

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

wordFile.FullName.Replace .doc .pdf object fileFormat WdSaveFormat.wdFormatPDF Save document into PDF Format doc.SaveAs.. .doc .pdf object fileFormat WdSaveFormat.wdFormatPDF Save document into PDF Format doc.SaveAs ref outputFileName.. .doc .pdf object fileFormat WdSaveFormat.wdFormatPDF Save document into PDF Format doc.SaveAs ref outputFileName..

Is String.Format as efficient as StringBuilder

http://stackoverflow.com/questions/6785/is-string-format-as-efficient-as-stringbuilder

String.Format as efficient as StringBuilder Suppose I have a stringbuilder.. more efficient as having string cat cat string s String.Format The 0 in the hat cat If so why EDIT After some interesting answers.. string.format share improve this question String.Format uses a StringBuilder internally public static string Format..

Parse C# string to DateTime

http://stackoverflow.com/questions/7580809/parse-c-sharp-string-to-datetime

C# code to linkify urls in a string

http://stackoverflow.com/questions/758135/c-sharp-code-to-linkify-urls-in-a-string

Parsing URLs with Regular Expressions and the Regex Object Format URLs in string to HTML Links in C# Automatically hyperlink URL..