Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General Field
Message
De
01/09/2000 18:44:01
 
 
À
01/09/2000 17:54:52
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00412012
Message ID:
00412015
Vues:
17
>I am appending a JPG file into a general field. This table is used to do a report. I'm using the following code:
>
>APPEND GENERAL PICR FROM (CNEWFILENAME + "R01.JPG")
>
>This code works fine on my developement machine but on the users machine the report prints showing the icon and not the accual picture. I looked at the Syntax for APPEND GENERAL. Do I need to specify a standard class for the ole automation to work. Maybe something like "Paint"?

Each system relies on the registry to designate a server application for the file extension - no registered server for the file extension on the system, or no Print action defined for the OLE Server on the system results in the General field doing nothing. This is yet another reason to avoid General fields like the plague - any variation in installed apps on systems results in variations in the behavior of the general field system to system, and short of installing specific server apps on each work station, you're screwed; there's no provision to control the behavior differently, since you rely on the OLE Server behaviors in the registry.

Just say no to General fields TANSTAAFL.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform