Print ByteArray Issue
I guess I miss something when it comes to printing files. I read all bytes out of a png image and send them to printer's job stream. However I get bytes printed out and not the image itself. I know its...
View ArticleHow to get font size of the pdf document
Hi friend how do i get the font size of the pdf document
View ArticleWe're sorry, but something went wrong. Please restart visual studio to show...
Visual Studio does not show method references and shows the following message:We're sorry, but something went wrong. please restart visual studio to show references.
View ArticleWindows service is not able to start
Hi,I have created sample windows service using C# and have installed on my development machine(windows 7 enterprise ,64 bit)But i got the error A timeout was reached (30000 milliseconds) while waiting...
View ArticleCom Exception Catastraphic failure
I am using RDPCOMAPILib with AXRDPCOMAPILIB and trying to develop a screen sharing application.But when I try to connect using axrdpviewer.Connect("connString","Name","") It throws ComException...
View ArticleTesting web services with webproxy configurations
Hello,I have added the proxy configuration through the WebProxy object to out webserives. The proxy info will be given by the user at log in, the client is a desktop app. how can I test if the...
View ArticleCreate and open Excel file using c#
I have button and Dropdown list. The items in dropdown list are nodes of an xml file. when i select one of node and click the button, the data under that node need to open in a new excel file. Please...
View ArticleFileInfo Locks the file
Start a project.inside the class I declare private ArrayList arrMyFileProps; I form load I create the array arrMyFileProps = new ArrayList(); I have a grid that is filled from...
View ArticleHow would I use this information to write a program in C#?
Okay so I have been given the bottom information: this was in an excel documentTitle of this info: enter values (the user inputs this information in the console box)Loan amount: $170,000.00Annual...
View Articleadding custom html header and footer to html document and printing in C#
Hi, I am using WebBrowser control to print the HTML documents. I want to add a custom header and footer to these html documents before printing. The header and footer are not just plain text but HTML...
View ArticleCrazy problem with xmlDocument.loadXML
using XmlDocument to load from a string (xDoc.LoadXML(string)) and it throws an exception "Input string was not in a correct format".This string works fine:<?xml version="1.0"...
View ArticleThe Calling Thread Must be STA
I have a windows form that is calling a WPF component of my application, the problem is that I am getting The calling thread must be STA because many UI Components require this.This is the calling...
View ArticleType dynamic along with Variables
I wanted to achieve following requirement not by using reflection class Customer { public string Name {get;set;} public void Show() { } } Main Program ------------- string propName = "Name" string...
View ArticleAdding SQL CLR # User Defined Function breaks build
I have an existing project that contains C# based triggers for a database.I add a C# user defined function and the build breaks.The problem is in the build created [project name].generated.sql fileThe...
View ArticlePassword pattern validation regular expression
Hi There,Can someone help me build a regular expression for below password complexity? The password must meet three of the five below conditions: 1.Uppercase character 2.Lowercase character 3.Number (0...
View ArticleLinq2SQL Save to DB when record has many numbered comuns
I am creating a question and answer website using c# in vs2013 with sql 2008 r2.I want to be able to save each answer in the students record using columns such as: Ans1, Ans2, Ans3 etc.Here is my code...
View ArticleFilestream.Write or Save() shows waitcursor frequently
I posted this in another thread as well - basically a file.save operation shows a waitcursor briefly before going back to default. Like a filestream.write(memorystream) to a certain location in the...
View ArticleCannot find templates to code in c# anywhere
When creating a new file, this window:http://imgur.com/3kGSGY1Sadly, I cannot make Visual C# files. I tried "click here to go online" but it does not show anything even though I have Internet Explorer...
View ArticleWhy aint my increment incrementing?
Although I am using MVC, this is a C# question.I have a method that takes an integer, increments it, assigns to a model, then returns it (is initiated by a button click). The only problem is it only...
View Article