Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: The performance of LINQ vs. traditional iteration Pin
Dave Kreskowiak30-Apr-13 5:17
mveDave Kreskowiak30-Apr-13 5:17 
AnswerRe: The performance of LINQ vs. traditional iteration Pin
Pete O'Hanlon30-Apr-13 6:38
mvePete O'Hanlon30-Apr-13 6:38 
GeneralRe: The performance of LINQ vs. traditional iteration Pin
Rob Philpott30-Apr-13 6:49
Rob Philpott30-Apr-13 6:49 
GeneralRe: The performance of LINQ vs. traditional iteration Pin
Simon_Whale30-Apr-13 23:41
Simon_Whale30-Apr-13 23:41 
AnswerRe: The performance of LINQ vs. traditional iteration Pin
Richard Deeming30-Apr-13 7:24
mveRichard Deeming30-Apr-13 7:24 
GeneralRe: The performance of LINQ vs. traditional iteration Pin
Rob Philpott30-Apr-13 7:54
Rob Philpott30-Apr-13 7:54 
AnswerRe: The performance of LINQ vs. traditional iteration Pin
jschell30-Apr-13 9:54
jschell30-Apr-13 9:54 
QuestionCrystal Report without preview print is not working in published file Pin
swathipd30-Apr-13 0:34
swathipd30-Apr-13 0:34 
C#
string GetDefaultPrinter()
   {
       PrinterSettings settings = new PrinterSettings();
       foreach (string printer in PrinterSettings.InstalledPrinters)
       {
           settings.PrinterName = printer;
          // Label1.Text = Label1.Text + "1" + printer;
           if (settings.IsDefaultPrinter)
               return printer;
       }
       return string.Empty;
   }


ShowReport()
{
ReportDocument rptdoc = new ReportDocument();
info = clsConnection.GetConnectionInfo();
path = "reports/AccessoryPurchaseOrder.rpt";
rptdoc.Load(Server.MapPath(path));
clsConnection.ConfigureLogonInfo(rptdoc, info);
pfItemYr.ParameterFieldName = "@transid";
dcItemtransid.Value = transid;
pfItemYr.CurrentValues.Add(dcItemtransid);
paramFields.Add(pfItemYr);
rptdoc.SetParameterValue("@transid", transid);
rptdoc.SetParameterValue("userid", userid);
rptdoc.SetParameterValue("systemid", sysid);
rptdoc.Load(Server.MapPath(path));
try
{

rptdoc.PrintOptions.PrinterName = GetDefaultPrinter();
rptdoc.PrintToPrinter(1, true, 0, 0);

rptdoc.Close();
rptdoc.Dispose();
Label1.Text = Label1.Text +GetDefaultPrinter();
}
catch (Exception ex)
{

PreviewViewer.ReportSource = rptdoc;
}
}
AnswerRe: Crystal Report without preview print is not working in published file Pin
Eddy Vluggen30-Apr-13 1:00
professionalEddy Vluggen30-Apr-13 1:00 
GeneralRe: Crystal Report without preview print is not working in published file Pin
swathipd1-May-13 19:00
swathipd1-May-13 19:00 
GeneralRe: Crystal Report without preview print is not working in published file Pin
Eddy Vluggen2-May-13 11:00
professionalEddy Vluggen2-May-13 11:00 
QuestionC# IE toolbar button runs bat or PS script. works one time then doesn't anymore. Pin
Member 990412330-Apr-13 0:19
Member 990412330-Apr-13 0:19 
Questionmodal popup inside another modal popup Pin
Gangula Sneha30-Apr-13 0:05
Gangula Sneha30-Apr-13 0:05 
AnswerRe: modal popup inside another modal popup Pin
GuyThiebaut30-Apr-13 0:38
professionalGuyThiebaut30-Apr-13 0:38 
QuestionRe: modal popup inside another modal popup Pin
Eddy Vluggen30-Apr-13 0:59
professionalEddy Vluggen30-Apr-13 0:59 
AnswerRe: modal popup inside another modal popup Pin
GuyThiebaut30-Apr-13 1:45
professionalGuyThiebaut30-Apr-13 1:45 
GeneralRe: modal popup inside another modal popup Pin
Eddy Vluggen30-Apr-13 2:11
professionalEddy Vluggen30-Apr-13 2:11 
GeneralRe: modal popup inside another modal popup Pin
GuyThiebaut30-Apr-13 2:22
professionalGuyThiebaut30-Apr-13 2:22 
GeneralRe: modal popup inside another modal popup Pin
Eddy Vluggen30-Apr-13 2:52
professionalEddy Vluggen30-Apr-13 2:52 
GeneralRe: modal popup inside another modal popup Pin
GuyThiebaut30-Apr-13 2:53
professionalGuyThiebaut30-Apr-13 2:53 
QuestionVFW blank frames at start of avi Pin
Boris The Bold29-Apr-13 23:24
Boris The Bold29-Apr-13 23:24 
QuestionBuying stock is easy, selling it is worse... loop problems? Pin
lordoftrades29-Apr-13 22:33
lordoftrades29-Apr-13 22:33 
AnswerRe: Buying stock is easy, selling it is worse... loop problems? Pin
Eddy Vluggen29-Apr-13 23:04
professionalEddy Vluggen29-Apr-13 23:04 
GeneralRe: Buying stock is easy, selling it is worse... loop problems? Pin
lordoftrades29-Apr-13 23:07
lordoftrades29-Apr-13 23:07 
GeneralRe: Buying stock is easy, selling it is worse... loop problems? Pin
Richard MacCutchan29-Apr-13 23:23
mveRichard MacCutchan29-Apr-13 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.