Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Msgraph
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00493112
Message ID:
00493476
Views:
25
Hi!

We used a general field as a core store of the graphs. This way you will be able to pribt them any time you want. In addition, you can work with such general-field objects by the same way usign full objects model. To do this, you should use OLEBoundControl control placed on some form and bound to the general field using ControlSource property of the OLEBoundControl. After refresh of the OLEBoundControl, you will be able to access Any OLE objects tree (not only MS Graph) using following reference:

form.OLEBoundControl.object....

We do following before printing:

Append general field by MS Graph control using APPEND GENERAL command. Than open a hidden form (placed outside of the screen), and using OLEBoundControl fill MSGraph control by required data and format it properly. Than do this for all otehr graphs and than print. Works quickly enough for our purposes (large report with several graphs). In addition, for debugging purposes, you can SEE all process of graph formatting visually on that hidden form just by making it visible in design time.


If you still want to use your approach... Well, I don't know if this can help, but search for something like saving of the graph into the file. Than APPEND GENERAL can use that file. I remember older versions of the MS Graph had this ability, don;t know if it exists now and f it is available through ActiveX interface.

HTH.


>Hello World
>
>I'm working with the Msgraph activex. I fill the datasheet making reference to a object (objeto.object.application.datasheet.range("A0").value = "Enero").
>
>I don't like the method that uses tab+blah+blah.
>
>It works all great, but is there a way of printing this graphs. I know using a general field and more, but how can I append this to a general field.
>
>gracias a todos!
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform