These guys have advised me for years and believe me, DON'T USE gen field to store picture data... 3-obvious solutions... first create an /IMAGE folder and store all of .jpg s in that folder [1] Client-id applied to each jpg image instantly gives you 1-logo per client. [2] If you default a zero in a pic-no field you can point everyone without a logo to 0.jpg no image graphic [3] if you must have multiple instances then each jpg must have a unique address and you will have a linking table
Gary Jeurink http://www.shopgi.com http://www.nebraskatwisters.com http://www.garyjeurink.com -----Original Message----- From: Joe Yoder [mailto:[email protected]] Sent: Sunday, August 10, 2014 7:50 PM To: Foxpro forum Subject: Re: JPG as General Fields in FRX Andrew, Several years ago I got help from this list to do exactly what you want to do in a report using a report listener subclass. I have a copy of the report code on my desktop but will need to lookup the report listener code on my laptop at another site. The report gets the name of the jpg file from a database and has "Center" into the User data field under the Other tab of the Picture properties. If this approach would still be useful to you I will try to look it up and post the actual code sometime this week. Joe On Sun, Aug 10, 2014 at 7:39 AM, Ted Roche <[email protected]> wrote: > Andrew: > > Long time no see! > > General fields are a perfectly fine solution if you're going to run your > app on one computer that has a fixed association for JPG files and that > computer application and OS is never changed. Otherwise, you run into COM > nightmares where the General Field is associated with an application and > has a binary data blob that can't find its matching program. > > I don't know the solution to your issue off the top of my head; surely > someone has solved this one before! But my reaction is that General is > almost never the correct answer. > > > > On Wed, Jul 30, 2014 at 5:07 AM, Andrew MacNeill <[email protected]> wrote: > > > Hey all, > > I have a handful of logos that are all different sizes. I want to show > > them on a report but when I use the actual physical files, I can't > control > > the centering properly. > > I've got a large image field on the report - but if my image is tiny, it > > immediately aligns to the left. When an image is larger, it fills nicely. > > (I hope that explains the problem well) > > > > I've suggested adding white space to the client (I believe they are > still > > laughing) > > > > So, my thinking went to General Fields. > > First, I know general fields are a bad way to go on this but this is the > > only way to support proper centering. > > So now the real issue is that when I take a JPG file, it wants to use the > > Windows Photo Viewer, which doesn't support native viewing. > > If I convert the JPG to a BMP, it works properly (because it's using MS > > Paint) BUT the quality is terrible. > > I tried to explicitly note the JPG as a Paint.Picture, but it still wants > > to use the Windows Photo Viewer. > > > > Has anyone found a good solution to this (either a better General > OLEClass > > for JPG) or a better overall solution? > > > > Thanks > > > > Andrew > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/3107C0FFEB0B426E87E1A76733A379B4@OwnerPC ** 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.

