Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
QuestionLPARAM value of the usb device Pin
Blubbo9-Jul-13 6:41
Blubbo9-Jul-13 6:41 
AnswerRe: LPARAM value of the usb device Pin
Richard MacCutchan9-Jul-13 10:13
mveRichard MacCutchan9-Jul-13 10:13 
GeneralRe: LPARAM value of the usb device Pin
Blubbo9-Jul-13 10:27
Blubbo9-Jul-13 10:27 
GeneralRe: LPARAM value of the usb device Pin
Richard MacCutchan9-Jul-13 10:50
mveRichard MacCutchan9-Jul-13 10:50 
AnswerRe: LPARAM value of the usb device Pin
Alan N10-Jul-13 4:06
Alan N10-Jul-13 4:06 
QuestionSqlLocalDB in Visual Studio2010 &2012 Pin
dharmaa.m9-Jul-13 2:35
dharmaa.m9-Jul-13 2:35 
AnswerRe: SqlLocalDB in Visual Studio2010 &2012 Pin
Dave Kreskowiak9-Jul-13 4:06
mveDave Kreskowiak9-Jul-13 4:06 
QuestionReason for no display of data in the pdf. Pin
Mausam Bharati9-Jul-13 1:41
Mausam Bharati9-Jul-13 1:41 
public string HTMLToPdf(_TableProperty ReportProperty, string FilePath,Stream stream)
       {
           string htmlread2 = getReportHTML(ReportProperty, stream);
           Document document = new Document();
           PdfWriter.GetInstance(document, new FileStream(System.Web.HttpContext.Current.Request.PhysicalApplicationPath + "\\myPDF.pdf", FileMode.Create));
           document.Open();
           iTextSharp.text.Image pdfImage = iTextSharp.text.Image.GetInstance(System.Web.HttpContext.Current.Server.MapPath("pdfic.jpg"));

           pdfImage.ScaleToFit(100, 50);

           pdfImage.Alignment = iTextSharp.text.Image.UNDERLYING; pdfImage.SetAbsolutePosition(180, 760);

           document.Add(pdfImage);
           iTextSharp.text.html.simpleparser.StyleSheet styles = new iTextSharp.text.html.simpleparser.StyleSheet();
           iTextSharp.text.html.simpleparser.XHTMLWorker hw = new iTextSharp.text.html.simpleparser.XHTMLWorker(document);
           hw.Parse(new StringReader(htmlread2));
           document.Close();
           ShowPdf("myPDF.pdf");
           return htmlread2;
       }

       private void ShowPdf(string s)
       {
           System.Web.HttpContext.Current.Response.ClearContent();
           System.Web.HttpContext.Current.Response.ClearHeaders();
           System.Web.HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + s);
           System.Web.HttpContext.Current.Response.ContentType = "application/pdf";
           System.Web.HttpContext.Current.Response.WriteFile(s);
           System.Web.HttpContext.Current.Response.Flush();
           System.Web.HttpContext.Current.Response.Clear();
       }

AnswerRe: Reason for no display of data in the pdf. Pin
Manfred Rudolf Bihy9-Jul-13 2:25
professionalManfred Rudolf Bihy9-Jul-13 2:25 
GeneralRe: Reason for no display of data in the pdf. Pin
Mausam Bharati9-Jul-13 20:58
Mausam Bharati9-Jul-13 20:58 
Questionlistview Pin
Member 99613129-Jul-13 0:56
Member 99613129-Jul-13 0:56 
AnswerRe: listview Pin
Eddy Vluggen9-Jul-13 3:07
professionalEddy Vluggen9-Jul-13 3:07 
AnswerRe: listview Pin
Jay Nardev11-Jul-13 21:01
Jay Nardev11-Jul-13 21:01 
AnswerRe: listview Pin
Kevin Bewley15-Jul-13 5:41
Kevin Bewley15-Jul-13 5:41 
QuestionMVC Grid Pin
_BrijeshSingh8-Jul-13 23:37
_BrijeshSingh8-Jul-13 23:37 
AnswerRe: MVC Grid Pin
Pete O'Hanlon9-Jul-13 0:35
mvePete O'Hanlon9-Jul-13 0:35 
Questiontwo lists with dates and values need to match them Pin
lordoftrades8-Jul-13 21:25
lordoftrades8-Jul-13 21:25 
Questionmd5 hash c# Pin
paulpro1098-Jul-13 17:10
paulpro1098-Jul-13 17:10 
AnswerRe: md5 hash c# Pin
Dave Kreskowiak8-Jul-13 19:04
mveDave Kreskowiak8-Jul-13 19:04 
GeneralRe: md5 hash c# Pin
paulpro10912-Jul-13 15:47
paulpro10912-Jul-13 15:47 
GeneralRe: md5 hash c# Pin
Dave Kreskowiak12-Jul-13 16:17
mveDave Kreskowiak12-Jul-13 16:17 
AnswerRe: md5 hash c# Pin
Manfred Rudolf Bihy8-Jul-13 19:24
professionalManfred Rudolf Bihy8-Jul-13 19:24 
GeneralRe: md5 hash c# Pin
paulpro10912-Jul-13 15:49
paulpro10912-Jul-13 15:49 
AnswerRe: md5 hash c# Pin
Bernhard Hiller8-Jul-13 23:03
Bernhard Hiller8-Jul-13 23:03 
QuestionRe: md5 hash c# Pin
Manfred Rudolf Bihy9-Jul-13 1:53
professionalManfred Rudolf Bihy9-Jul-13 1:53 

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.