Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GDIPlusX and Printing
Message
De
02/04/2007 11:00:24
 
 
À
02/04/2007 10:44:16
Information générale
Forum:
Visual FoxPro
Catégorie:
VFPX/Sedna
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01210581
Message ID:
01211302
Vues:
28
>Q1: Can we have multiple canvas printouts sent to printer as a single
>printjob in printer que.

Yes, but to do that you'll need to create a new Bitmap of the size of the 2 images that you want to print together, and send to the printer once.

The printing method is really simple, depending on the case, you can modify the "ToPrinter()" method to best fit your needs.


>Q2: Can I print 'snapshot' of a canvas, then clear the surface
>and then again draw/print/clear number of consecutive pages ?

Of course yes !


>You were talking about memory stream etc; can more then one canvas or 'printshot' (Q2) of it, be somehow cashed into memory (or in a file)
>and then sent together to printer ?

Yes


>Q3: ImgCanvas is based on VFP Image class;
>Is it possible to do drawing on it, and also insert number of
>of smaller bitmaps nested into specific coordinates of imgcanvas ?
>I saw menu examples there playing game with with complex
>graphic tasks I believe this should be easily doable ...

Again Yes


>Q4: I saw that oBmp object is sort of object reference to ..System.Drawing.image..&DarkWoods
>and .toPrinter() is probably call or wrapper of some print method there.
>
>Is there more methods/properties from there that we can access/use this way in order to have more control over spooling/printing processes etc

The method "ToPrinter()" does not exist in the original "System.Drawing" namespace from .NET. Me and Bo agreed that it could bring some good help for people to work with the library. If you have any suggestion in order to improve this method, please tell us, and if that's possible, and fits the library structure and goals, it will be included.




>Basically Is this possible ?

Even Before reading your next question, my answer is YES !!!
:-))))


>Steps;
>
>- Instantiate Canvas
>- Draw Text, lines, rectangles etc
>- store snapshot
>
>- Clear Canvas
>- Again Draw Text, lines, rectangles etc
>- Insert line of smaller pictures into imgcanvas
>- store snapshot
>
>For i = 1 to N
> - Clear Canvas
> - Again Draw Text, lines, rectangles, nested bitmaps etc
> - store snapshot
>next
>
>- Sent it alltogether to the printer as single printjob without killing
>session, printer que or both <vbg>

Yes, possible too.
As I said before, the most recommended is to create a new big image that will receive all images. Then with GDI+ you'll draw all created bmps in it, and after this is done, send to the printer.


Sergio,

Believe-me, Gdiplus-X can do a huge quantity of cool things.
And most of them I've never thought of.

The most recommended is that you create new threads for every different topic using the library.

Hope this helps

Cesar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform