Mervyn-w


I have coded mschart into an application and it works extremely well until I attempt to distribute it.When the distribution disk has been installed and the graph section selected an error message "The item you are trying to load is unavailable. Please insert Proffessional English Disk..."

Obviously I have to attache something else but what Your help will be very much appreciated. Mervyn





Re: DISTRIBUTING MSCHART

Naomi Nosonovsky


How exactly you're using MS Chart in your application




Re: DISTRIBUTING MSCHART

CetinBasoz

I think it's better to use MSChart instead. You're using MSGraph and not MSChart as I understand from partial message. Check MSDN for problems with MSGraph's dependancy to office installation, and to problems and resolution if office is uninstalled.




Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Naomi

Many thanks for replying. Below is the code I'm using to define the chart. I have left out a number of command buttons and labels to simplify. The distribution version works well on my computer which has VFP9 Proffesional on it but not on any other. Some of this programming is above me but I assume Mschart is an Active X control and that I should be including some other file, but what .

Kind Regards

Mervyn Burbery

Taupo

New Zealand

*

Copy of code

*

*

Procedure GRAPHDISPLAY

ON ERROR DO IGNOR

Release goForm

Public goForm

goForm = Createobject("form1")

goForm.Show()

#Define VtChChartType2dBar 3

Define Class form1 As Form

Top = 80

Left = 0

Height = 480

Width = 806

WindowType=1

Name = "Form1"

Closable=.F.

MaxButton=.F.

MinButton=.F.

TitleBar= 0

BackColor=Rgb(238,238,215)

Add Object Label1 As Label With;

Fontsize = 10, ;

forecolor = Rgb(255,0,0), ;

FONTBOLD=.T.,;

CAPTION=Upper(GMNAME1),;

Height = 30,;

Left = 12,;

Top = 2,;

name= "label1",;

AUTOSIZE=.T.

Add Object COMMAND2 As CommandButton With;

CAPTION= "CHANGE LEFT AXIS",;

FONTBOLD=.T.,;

HEIGHT = 40,;

LEFT=57,;

TOP=410,;

AUTOSIZE=.T.,;

NAME="LAXIS"

Add Object RAXIS As CommandButton With;

CAPTION= "CHANGE RIGHT AXIS",;

FONTBOLD=.T.,;

HEIGHT = 40,;

LEFT=435,;

TOP=410,;

AUTOSIZE=.T.,;

NAME="RAXIS"

Add Object olecontrol1 As OleControl With ;

Top = 50, ;

Left = -20, ;

Height = 360, ;

Width = 665, ;

Name = "Olecontrol1", ;

OleClass = 'MSChart20Lib.MSChart'






Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Cetin

Many thanks for replying to my question but I am using Mschart, Below is the code I'm using to define the chart. I have left out a number of command buttons and labels to simplify. The distribution version works well on my computer which has VFP9 Proffesional on it but not on any other. Some of this programming is above me but I assume Mschart is an Active X control and that I should be including some other file, but what .

Kind Regards

Mervyn Burbery

Taupo

New Zealand

*

Copy of code

*

*

Procedure GRAPHDISPLAY

ON ERROR DO IGNOR

Release goForm

Public goForm

goForm = Createobject("form1")

goForm.Show()

#Define VtChChartType2dBar 3

Define Class form1 As Form

Top = 80

Left = 0

Height = 480

Width = 806

WindowType=1

Name = "Form1"

Closable=.F.

MaxButton=.F.

MinButton=.F.

TitleBar= 0

BackColor=Rgb(238,238,215)

Add Object Label1 As Label With;

Fontsize = 10, ;

forecolor = Rgb(255,0,0), ;

FONTBOLD=.T.,;

CAPTION=Upper(GMNAME1),;

Height = 30,;

Left = 12,;

Top = 2,;

name= "label1",;

AUTOSIZE=.T.

Add Object COMMAND2 As CommandButton With;

CAPTION= "CHANGE LEFT AXIS",;

FONTBOLD=.T.,;

HEIGHT = 40,;

LEFT=57,;

TOP=410,;

AUTOSIZE=.T.,;

NAME="LAXIS"

Add Object RAXIS As CommandButton With;

CAPTION= "CHANGE RIGHT AXIS",;

FONTBOLD=.T.,;

HEIGHT = 40,;

LEFT=435,;

TOP=410,;

AUTOSIZE=.T.,;

NAME="RAXIS"

Add Object olecontrol1 As OleControl With ;

Top = 50, ;

Left = -20, ;

Height = 360, ;

Width = 665, ;

Name = "Olecontrol1", ;

OleClass = 'MSChart20Lib.MSChart'






Re: DISTRIBUTING MSCHART

CetinBasoz

Ok I seeSmile MSChart has its own ocx, namely "MSChrt20.ocx" to distribute. Also you'd find its merge module file in "C:\Program Files\Common Files\Merge Modules" named "mschrt20.msm".



Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Cetin

Thanks for your info, but I have still got the problem.

The programe is a sharemarket suite which was orriginally developed using VFP6. Vfp6 distribution disks were only the 1.4mb floppies so after building the .exe file we used a Winzip self extracting programe to distribute.

We now use VFP9.

After reading the info you sent I changed over to Install Shield to produce a distributable disk.

Now when the distributable version is run I get the message "The feature you are trying to use is on a network resource that is unavailable.

Use source (Names the directory where the files for creating the disk are kept)

The additional files I am including in the project are gdiplus.dll, mschrt20.ocx, msvcr71.dll, vfp9r.dll, vfp9renu.dll.

Regards

Mervyn Burbery






Re: DISTRIBUTING MSCHART

CetinBasoz

It's an insatller issue and I don't create the installations. Check installshield walkthrough article under VFP folders (don't know exact place and name). I think you'd use msm not ocx.



Re: DISTRIBUTING MSCHART

AndyKr

Mervyn

As Cetin says, this sounds like an installer issue.

I am pretty sure that in order to use InstallShield you have to use the Microsoft Installation Modules for these external files - rather than simply adding the files directly. These are the MSM files that Cetin refers to and, if I remember correctly (it's been years since I did an InstallShield distribution - I much prefer INNO) you can specify the "Merge Modules" that you want to include.

In addition to the Microsoft Walk-through on Installshield which, in VFP 9.0 is in the help file under "samples and Walthroughs - "Walkthrough: Creating Applications with Visual FoxPro"), you might want to check the additional information on the Fox Wiki at http://fox.wikis.com/wc.dll Wiki~InstallShieldExpressAndVfp7~VFP






Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Cetin

I have sent a copy of this to Andy as well.

I think everything is going from bad to worse. I followed the Installshield Walkthrough instruction very carefully but with the same results. But as well when I run the programe from the development system where it was working perfectly I now get the following messages.

"The installed product does not match the installation source. Until a matching source is provided or the installed product and source are synchronized this action cannot be performed.

Use source C:\SHZIP\SHAREMARKET\EXPRESS\CD_ROM\DISKIMAGES\DISK1

Click OK

After OK the following message comes up. C:\SHZIP\.....DISK1 Sharemarket.msi cannot be found try to find the installation package sharemarket.msi in a folder from which you can install the product Sharemarket OK

I have completely removed Installshield, Removed and reinstalled VFP9 Development software, gone to backup and loaded my program files from a backup created before I used Installshield but I still get the same message

The name Sharemarket was the name I gave the project When using Installshield I have never used it before and with everything removed and using backfiles I don't know where it is getting it from.

Any suggestions

Regards

Mervyn Burbery

PS: I have to go away for 3 days to a funeral so I won't get back to this until Thursday.






Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Andy

I have sent a copy of this to Cretin as well.

I think everything is going from bad to worse. I followed the Installshield Walkthrough instruction very carefully but with the same results. But as well when I run the programe from the development system where it was working perfectly I now get the following messages.

"The installed product does not match the installation source. Until a matching source is provided or the installed product and source are synchronized this action cannot be performed.

Use source C:\SHZIP\SHAREMARKET\EXPRESS\CD_ROM\DISKIMAGES\DISK1

Click OK

After OK the following message comes up. C:\SHZIP\.....DISK1 Sharemarket.msi cannot be found try to find the installation package sharemarket.msi in a folder from which you can install the product Sharemarket OK

I have completely removed Installshield, Removed and reinstalled VFP9 Development software, gone to backup and loaded my program files from a backup created before I used Installshield but I still get the same message

The name Sharemarket was the name I gave the project When using Installshield I have never used it before and with everything removed and using backfiles I don't know where it is getting it from.

Any suggestions

Regards

Mervyn Burbery

PS: I have to go away for 3 days to a funeral so I won't get back to this until Thursday.






Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Cretin (I have also sent a copy of this to Andy)

I think due to your help I have resolved most of the problems. The tempory new problem I had last week was somehow caused by the fact that my version of VFP9 is an upgrade from VFP6. I had to uninstall VFP6 and reinstall and the problem of "Not matching the installation source " disappeared.

I took the advice and worked my way through the Microsoft Walkthrough Instructions for InstallShield with some sucess.

To get the distributed programe working I cannot just run setup.exe, I have to put a copy of the source folder on the users hard drive. Even so I am getting a message "Please wait while Windows configures Sharemarket". When making the distributed version there are no errors or warnings in the log file. I would have thought that all the required files would be transferred when setup is run.

I will appreciate your comments.

Regards

Mervyn






Re: DISTRIBUTING MSCHART

Mervyn-w

Hello Andy (I have also sent a copy of this to Cretin)

I think due to your help I have resolved most of the problems. The tempory new problem I had last week was somehow caused by the fact that my version of VFP9 is an upgrade from VFP6. I had to uninstall VFP6 and reinstall and the problem of "Not matching the installation source " disappeared.

I took the advice and worked my way through the Microsoft Walkthrough Instructions for InstallShield with some sucess.

To get the distributed programe working I cannot just run setup.exe, I have to put a copy of the source folder on the users hard drive. Even so I am getting a message "Please wait while Windows configures Sharemarket". When making the distributed version there are no errors or warnings in the log file. I would have thought that all the required files would be transferred when setup is run.

I will appreciate your comments.

Regards

Mervyn