Skip to content

Instantly share code, notes, and snippets.

@forsythetony
Created April 7, 2015 21:05
Show Gist options
  • Save forsythetony/b9ad45b9920a01bfc006 to your computer and use it in GitHub Desktop.
Save forsythetony/b9ad45b9920a01bfc006 to your computer and use it in GitHub Desktop.
How I currently pull user data in ReportBuilder
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);
}
@forsythetony
Copy link
Author

The information I need to pull

  • Section number
  • University and Lifetime IDs
  • Entry term
  • Cluster
  • Home address
  • email address
  • Education record including the following for each item
    • Degree name
    • University name
    • Graduation year
  • Employment record including the following for each item
    • title
    • division
    • company
    • industry
  • List of native and foreign languages spoken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment