[Mono-list] error in the DrawString method

dan_volp daniele.volpi at provincia.cremona.it
Fri Aug 22 02:36:33 EDT 2008




Sebastien Pouliot-2 wrote:
> 
> 
> Please fill a bug report @ http://www.mono-project.com/Bugs
> 
> Include:
> 
> * a complete, but as small as possible, test case that shows your
> problem.
> 
> * which mono packages are installed on your system
> 
> Thanks
> Sebastien
> 
> 



installed packages:

rpm -qa mono*
mono-data-1.9.1-2.fc9.i386
mono-cecil-flowanalysis-0.1-0.5.20080409svn100264.fc9.i386
mono-debugger-devel-0.60-3.fc9.i386
mono-data-postgresql-1.9.1-2.fc9.i386
mono-data-oracle-1.9.1-2.fc9.i386
mono-nunit22-devel-2.2.10-5.fc9.i386
mono-extras-1.9.1-2.fc9.i386
mono-nunit22-2.2.10-5.fc9.i386
mono-sharpcvslib-0.35-3.fc9.i386
mono-basic-1.9-2.fc9.i386
mono-winforms-1.9.1-2.fc9.i386
mono-cecil-flowanalysis-devel-0.1-0.5.20080409svn100264.fc9.i386
mono-debugger-0.60-3.fc9.i386
monodevelop-0.19-6.fc9.i386
mono-core-1.9.1-2.fc9.i386
mono-ndoc-1.3.1-2.fc9.i386
mono-nunit-devel-1.9.1-2.fc9.i386
mono-addins-devel-0.3-5.fc9.i386
mono-addins-0.3-5.fc9.i386
monodoc-1.2.6-2.1.fc9.i386
mono-ndoc-devel-1.3.1-2.fc9.i386
monodevelop-devel-0.19-6.fc9.i386
mono-data-sqlite-1.9.1-2.fc9.i386
mono-jscript-1.9.1-2.fc9.i386
mono-web-1.9.1-2.fc9.i386
mono-nunit-1.9.1-2.fc9.i386
mono-sharpcvslib-devel-0.35-3.fc9.i386
mono-locale-extras-1.9.1-2.fc9.i386
mono-data-sybase-1.9.1-2.fc9.i386
mono-devel-1.9.1-2.fc9.i386

code:

int PrnMarginLeft, PrnMarginRight, PrnMarginTop, PrnMarginBottom;
int y;
int x1,x2,x3;
System.Drawing.Font tableFont = new System.Drawing.Font("Arial",8f,
FontStyle.Regular, GraphicsUnit.Millimeter);
StringFormat format = StringFormat.GenericDefault;
e.Graphics.PageUnit = GraphicsUnit.Millimeter;
PrnMarginLeft = 15;
PrnMarginRight = 7;
PrnMarginTop = 6;
PrnMarginBottom = 15;
x1=PrnMarginLeft+2;
x2=PrnMarginLeft+42; 
x3=PrnMarginLeft+47;
float varAltezza3 = tableFont.GetHeight(e.Graphics);
 RectangleF r3 = new RectangleF(x1, y, x2-x1-1, varAltezza3*2);
e.Graphics.DrawString("hello everybody",tableFont,Brushes.Black,r3); //  it
does not work
// e.Graphics.DrawString("hello
everybody",tableFont,Brushes.Black,(float)x1,(float)y); // it works

thank you!

-- 
View this message in context: http://www.nabble.com/error-in-the-DrawString-method-tp19083159p19101785.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list