Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Msgraph
Message
From
09/04/2001 14:37:00
Scott Barker
Barker Systems Consulting Ltd.
North Vancouver, British Columbia, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00493112
Message ID:
00493696
Views:
22
Hi Vlad.

I'm intereted in your approach on this for msgraph and can get the oleboundcontrol working on the form ok. I'm having a little trouble seeing down into the object model ... just looked at it with the debugger.

Is there a help file for the model that you know of?

form.oleboundcontrol.object.datasheet returns the error unknown name ... so, I don't have the model path correct.

... could you provide a couple of lines so that I can get this right?

Thx, Scott :-D

ps; To save the graph to a file ... I've been shown that the Export method works well for this: object.Export("filename.gif","GIF") .. nicely creates a GIF file of the graph.

>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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform