Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graphs in reports?
Message
 
To
17/07/2004 09:21:29
Steven Edge
Soft Solutions Limited
Lagos, Nigeria
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00925468
Message ID:
00925502
Views:
13
Hi Steven,

In July issue of FoxPro Advisor there's an article of Christof Wollenhaupt (a.k.a. Christof Lange) "Using GDI+ in the VFP 9 Report Writer" -- take a look, it's very close to the subject of your message.

On my web site http://www.news2news.com/vfp I have several code samples showing how to create bitmap files. GDI API functions allow to create blank memory bitmaps, set their dimensions, draw on them and save to bitmap files. Of course it requires certain amount of program code.

For example, one code sample on my web site explains how to create bitmap with text message and dynamically assign it to the Picture property of a CommandButton control. This way you can create command buttons with vertical text in all versions of Visual FoxPro.

More advanced GDI+ graphics library (WinXP/Win2K/Win2003) is generally more powerful, works with larger amount of image formats etc. That FoxPro Advisor article I mentioned just explains how new Report Writer exposes the Graphics object, which is the GDI+ core object (like a canvas).

It seems too many words already :) Here is a list of code samples. Though all of them are published in members area and require subscription.

Vertical Label control
http://www.news2news.com/vfp/?example=398

Subclassing CommandButton control to create BackColor property
http://www.news2news.com/vfp/?example=392

Storing screen shot of a form to a bitmap file
http://www.news2news.com/vfp/?example=187

Storing screen shot of a form to enhanced metafile (*.emf)
http://www.news2news.com/vfp/?example=402

GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
http://www.news2news.com/vfp/?example=454
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform