Thanks Duane, but this won't work.
See the data to be plotted will be a topographic survey of points and lines.
The user will supply the surveys, and choose which (x,y) points make up
the lines. Some reports will be plan views, and some reports cross sections.
It is important that these be accurately scaled (nn feet per inch).
I can do a xy scatter plot of the points, but the scale can't be contolled.
And it does not have the linear features.
Using the MS access help, it showed how to draw a circle, to scale, pset
points, and draw lines at specific coordinates but it only worked on reports
and then only in the "On Page" or "On format" events. The coordinates were
all hard-coded into
the code of the report.
I have an example that works but I had to figure all the scaled points and
lines in a query, then paste them to the report code. If I rescale or zoom
the plot, all the coordinates must be re-computed.
If I could just pass the points and lines to the "on format" event, they
could be processed from the survey table.
Would it help to see the single report and the code in it?
hgeron
--
hgeron
"Duane Hookom" wrote:
> Why not bind your report to the data? You can use a single line of code to
> plot all the points in a single section like:
>
> Me.MoveLayout = False
>
> I believe I have code that does this in the Corp Tech Demos at
> http://www.invisibleinc.com/divFiles.cfm?divDivID=4.
> --
> Duane Hookom
> MS Access MVP
>
> "hgeron" <(E-Mail Removed)> wrote in message
> news:9089ED1C-78E9-4775-85FA-(E-Mail Removed)...
> >I can set a scale and draw lines and points on a report by building "on
> > format" code. But how do I the the "on format" event to read the data
> > from a
> > table or query? It is easy to copy the points and paste them into the
> > code,
> > like this...
> >
> > x = 3.285: y = 4.092: Me.PSet (x, y), lngColor
> > x = 3.279: y = 4.457: Me.PSet (x, y), lngColor
> > x = 3.569: y = 4.458: Me.PSet (x, y), lngColor
> >
> > but I have thousands of points to compute and "pset"
> >
> > How do I get the event "on format" to read my points?
> >
> >
> > --
> > hgeron
>
>
>