mike Delvotti

mike Delvotti

  • NA
  • 262
  • 0

Format to currency on print page

Sep 13 2012 12:04 PM

Is there a way i can format to a curruncy figure on print page? my subtotal field is output to a number format as ("F2") and i need it like this to save in that format to the DB.

However, I would like it to print to a page as format ("c"), i.e. can i convert my code below to pass the text field 'subtotalTextBox' as ToString("c")

using e.Graphics.DrawString(subtotalTextBox.Text, font,

(Font font = new Font("Arial", 10))SystemBrushes.WindowText, e.PageBounds.X + 687, 940);

Answers (2)