Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graphs in reports?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00925468
Message ID:
00925546
Vues:
12
I went to your site - it seems very informative - but I always get hungup at the userid/password request. What should I put in those fields?:-)

I wonder if the problem - getting a chart to the report could not be solved real-time/cached by selecting and copying (to clipbord) the "chart area" (VFP->Excel Automation)and then using the "paste special" (if it can be automated) in the VFP reporter?

It seems a solution like this would not need to write a file to disk. But, other than recording and playing a VFP macro, it is difficult to understand how this would be done. A VFP->VFP Reporter Automation would be cool - but how to do it is the 2 dollar question.

If it was batch then copy the chart area to the clipboard, saving the clipboard as a BMP, and then append general to the cursor would work. A SAVEPICTURE() would be nice - but how to do?

I also saw in the HELP service something about SET LIBRARY TO EDPASTE, that seemed to be cached - and reviewed MODIFY GENERAL to insert an OBJECT "pasted" to a (DEFINEed) Window - but again how to do?

If we could automate VFP, like we do Excel (maybe we can) -and drive the menus it would be great but the VFP Object does not present (or so it seemed) methods or properties to do this.

So in review - the options I think I see are:
1) Copy Chart Area and Paste Special to report (all cached)
2) Copy Chart Area, Save as BMP, and append general (Cache and Disk a record for each chart)
3) Copy Chart Area, make it an object (DEFINE WINDOW) and modify general (cached and disk but would only need a one record GENERAL field)

IF the PAste Special in the reporter could be "automated" or played it would be cool - but all my attempts ended with four letter words!:-)

>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
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform