Posted 8 September 2017, 12:54 pm EST
From an RTF text string, I converted it to normal text so I can add it to a header & print it.
using(RichTextBox rtf = new RichTextBox())
rtf.Rtf = rtfSiteAddress; //rtf SiteAddress contains RTF text
siteAddress = rtf.Text; //get normal text
rtf.Rtf = rtfDisclaimer; //rtfDisliamer contains RTF text
disclaimer = rtf.Text; //get normal text
FarPoint.Win.Spread.PrintInfo pInfo = new PrintInfo();
pInfo.Header = "/fn\"Arial\"/fz\"12\"Vaccine Administration Record/n" + "Patient: " + patient.Person.Name + "/nRecord Number: " + patient.MedicalRecordNumber + "/nBirth Date: " + patient.Person.Birthdate.ToShortDateString() + "/n" + siteAddress + "/n" + disclaimer;
It does not print as expected when it prints the siteAddress & disclaimer. The newlines do not seem to be taking effect. I must also say that the siteAddress & disclaimer text has embedded newline chars ('\n') for formatting purposes. Perhaps this is causing the problem?