>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.