Sytze and Manjit,
To print simply use the following commands:
With Thisform.oChart as RMCHART.RMChartX
.Draw2Printer
*
Endwith
And Manjit, for your benefit I have a .prg version of the Form based program
which may well help with your query. However, if you have no GUI, then where
do you envisage displaying the graph? I think I am not understanding
something here - but it has been a hard week!
Dave Crozier
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sytze de Boer
Sent: 26 March 2008 18:55
To: [email protected]
Subject: Re: VFP and Graph - RMChart - OLE IDispatch exception
I'm watching this thread with interest because I'm trying to include this
with my own App
When you've figured out how to print, let me know please
Sytze
On Thu, Mar 27, 2008 at 6:50 AM, Manjit Basra <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Dave, thanks for recommending RMChart for graphs and the sample code. It
> works great even in VFP7.
>
> I downloaded and installed RMChart 4.12. I am using VFP7. I use the
> following command to create an instance:
>
> obj = CREATEOBJECT("RMChart.RMChartX")
>
> No problem. However, when I issue the following commands:
>
> obj.Reset
> obj.SetProperties(640, 400, 0, 2, "", "Tahoma", , , , )
>
> I get the following error for both of the lines:
>
> "OLE IDispatch exception code 0 from RMChart: Object variable or With
> block variable not set."
>
> I am trying to create a report for my web based app. The EXE file has no
> GUI objects. That is why I need to use CREATEOBJECT().
>
> Any thought? Appreciate your help.
>
>
>
> Manjit
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.