Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iTextSharp.text.Font fontbold = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 10);
- iTextSharp.text.Font font5 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA, 8);
- //data display
- string name =Environment.MachineName;
- string date = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss tt");
- string empty = "";
- string heading = "SUMMARY REPORT";
- string beginning = "nAccount Id : " + accountId + "nTestScenarioId : " + testScenarioId + "nMachine Name : " + name + "nScheduledDate : " + date + "nServerURL :" + serverURL + "n " + empty;
- Phrase ph = new Phrase(beginning);
- Phrase phr = new Phrase(heading);
- Paragraph p = new Paragraph();
- Paragraph pr = new Paragraph();
- p.Font(font5);---------------------------------------------------//Error
- pr.Font(fontbold);----------------------------------------------//Error
- p.Add(ph);
- pr.Add(phr);
- document.Add(phr);
- document.Add(p);
- p.Font = font5;
- pr.Font = fontbold;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement