Home All Groups Group Topic Archive Search About

Problem when printing polygon

Author
21 Mar 2006 5:44 AM
Jaime
When I send to printer a graph (polygon) I receive the next message:

Object referente not set toa n instante o fan 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 the same function when the polygon is shown in the monitor.
Does anybody have any idea what could be?

Thank a lot.

Jaime

Author
21 Mar 2006 5:49 AM
Jaime
Additionally

I´m using VS 2003, framework 1.1

Thanks.



Jaime escribió:
Show quoteHide quote
>
> When I send to printer a graph (polygon) I receive the next message:
>
> Object referente not set toa n instante o fan 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 the same function when the polygon is shown in the monitor.
> Does anybody have any idea what could be?
>
> Thank a lot.
>
> Jaime
Author
21 Mar 2006 9:20 AM
Ralph
Show quote Hide quote
"Jaime" <jaimealvare***@gmail.com> wrote in message
news:%23L6eRvKTGHA.4452@TK2MSFTNGP12.phx.gbl...
> Additionally
>
> I´m using VS 2003, framework 1.1
>
> Thanks.
>
>
>
> Jaime escribió:
> >
> > When I send to printer a graph (polygon) I receive the next message:
> >
> > Object referente not set toa n instante o fan 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 the same function when the polygon is shown in the monitor.
> > Does anybody have any idea what could be?
> >
> > Thank a lot.
> >
> > Jaime

Then you need to post in a dotNet newsgroup:
news://msnews.microsoft.com/
   microsoft.public.dotnet.framework.drawing
   microsoft.public.dotnet.general
   microsoft.public.dotnet.languages.vb
   microsoft.public.dotnet.framework.windowsforms.controls
   microsoft.public.vsnet.general
   microsoft.public.vstudio.general