Created
April 7, 2015 21:05
-
-
Save forsythetony/b9ad45b9920a01bfc006 to your computer and use it in GitHub Desktop.
How I currently pull user data in ReportBuilder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (UserRoleChart userChart in m_chart.UserRoleCharts) | |
{ | |
User p_user = userChart.UserRole.User; | |
String fNameText = p_user.DisplayFirstName; | |
String lNameText = p_user.DisplayLastName; | |
PdfPage newPage = pdfDoc.AddPage(pdfPageSize, pdfPageMargins, pdfPageOrientation); | |
float xPos = 100; | |
float yPos = 50; | |
String testText = string.Empty; | |
testText = fNameText + " " + lNameText; | |
Font testFont = new Font(pageFontFamily, 10); | |
TextElement txt = new TextElement(xPos, yPos, testText, testFont); | |
float imgWidth = 200.0f; | |
float imgHeight = 200.0f; | |
float imgXPos = 10.0f; | |
float imgYPos = 10.0f; | |
ImageElement img = new ImageElement(imgXPos, imgYPos, imgWidth, imgHeight, fullImagePathWithImagePath(p_user.Image)); | |
newPage.AddElement(img); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The information I need to pull