Drawstring word wrap o mostrar texto completo
Esta es la salida que obtengo cuando uso DrawString.
I = Smith, John II = Johnson, Mark III = Anderson, James IV = William, Craig V = Ford, Él ...
page es un tipo de datos flotante cuyo valor se basa en e.PageSettings.Margins.Left;
e.Graphics.DrawString (Texto, nuevo System.Drawing.Font ("Arial", 8F, FontStyle.Regular), Brushes.Black, página, 30);
En el ejemplo anterior, es
e.Graphics.DrawString(Text, new System.Drawing.Font("Arial", 8F, FontStyle.Regular), Brushes.Black, page, 30);
Intenté usar este
StringFormat format = new StringFormat();
format.FormatFlags = StringFormatFlags.FitBlackBox;
e.Graphics.DrawString(Text, new System.Drawing.Font("Arial", 8F, FontStyle.Regular), Brushes.Black, page, 30, format);
¿Cómo amplío / ajuste de palabras para que pueda tener las palabras completas en lugar de '...' al final?
I = Smith, John II = Johnson, Mark III = Anderson, James IV = William, Craig V = Ford, Henry