Since you print objects to the document at specified coordinates it make no
sense to have a current x/y position.
If you need something like the old VB Print object you can try my report
engine: it cames with a designer but you can build your prints at runtime in
a more structured way
The reason (although it may not make sense to you) is as follows:
I have two string variables, one represents a label (for display, not a VB
"label" object) and the other represents the value associated with this
"label".
I specify the x and y coordinate and print the label. Now I wish to change
my pens color (or whatever) and print the labels value following the label,
but I don't know the x and y coordinates to use for the "value" string.
What I would like to do is:
1. Set the x and y coordinates for the "label" string
2. Drawstring() - print the "label" string
3. Get the current x and y coordinates - the PointF where the printer is now
located
3. Set the x and y coordinates for the "value" string
4. Drawstring() - print the "value" string at these new coordinates
Does this make sense now?
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.