By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,373 Members | 1,792 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,373 IT Pros & Developers. It's quick & easy.

Problem printing polygon

P: n/a

When I send a graph (polygon) to printer, I receive the next message:

Object referente not set to an instante of an object.--- at
System.Drawing.SafeNativeMethods.GdipFillPolygonI( HandleRef graphics,
HandleRef brush, HandleRef points, Int32 count, Int32 brushMode)
at System.Drawing.Graphics.FillPolygon(Brush brush, Point[] points,
FillMode fillMode)
at WinAppSeguimiento.frmImpresion.PaintRadar(Graphics & graphToRender,
Double paramRadio, Int32 height, Int32 width, Int32 left, Int32 top,
Int16, paramDataPoints, Int16 paramSegments, Color paramLineColor, Color
paramAreaColor, Double[,] paramValues)
I use without problem the same function when the polygon is shown in the
Im using VS 2003, framework 1.1

Does anybody have any idea what could be?
Thank a lot.

Mar 21 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Set a breakpoint at the line the FillPolygon line and inspect the
brushes, graphics, and other objects and find out which one is null.
That should give you some clues as to why it is occurring.

Mar 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.