Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Images

Status
Not open for further replies.

Gravey

Programmer
Oct 9, 2001
11
US
I am having trouble printing images (GIFs and JPGs). The full path name of the image is being stored in a memo field. A temporary table is created for the purpose of printing and APPEND GENERAL is used with this path name to insert the records into the temporary file. This is working great for BMPs. JPGs and GIFs are not working. No matter what image is selected to print, the exact same paint brush icon prints with the file name of the selected image below it as part of the image. Anyone have any idea what may be going on?

Thanks for your assistance.
Gravey.
 

Chris &/ or Weedz,

I have tried several things, nothing works. I have Windows 2000 Pro, but I do not have Microsoft Photo Editor, or apparently any other workable graphics editor. I could install one of these, however, I cannot assume the users of our distributed app will have one of these graphical editors. I am using VFP6. Do I have to require our customers to purchase totally unrelated graphics software simply so that they can print images/ pictures within ours? Foxpro has no problem displaying JPG or GIF images (regardless of the graphical software installed on a machine), why is it not able to print them? Does 7.0 correct this issue?

Thanks for your help.

Gravey.
 
Gravey

VFP does not like the specific combination of Windows NT and Microsoft Image Composer, and there may be other unsuitable combinations.

What graphics editor is currently associated with .gifs and .jpgs?

If none, that might be your problem.

I assume Windows Imaging is bundled with Windows 2000 Pro, and if so, try associating .jpgs and .gifs with that application, and seeing how that works.

Chris :)
 
Thanks Chris,

I have tried all of the following, none of them work. All display an icon (the icon is different depending on which graphics editor I choose) but all display the file name below it, instead of displaying the GIF or JPG image.

Internet Explorer (Original)
Imaging
Imaging Preview
Microsoft Paint
Microsoft Photo Editor
Microsoft Windows Media Player
RealPlayer
Windows Media Player

Any other ideas? APPEND GENERAL has CLASS and LINK options, can these be used to force an association? If so, how? I'm still stuck. I appreciate your assistance. Thanks.

Sincerely,
Gravey
 
Gravey

Two suggestions, both requiring the abandonment of the general field as a means of storage of an image file.

[tab]1. Store the images files in a folder(s) and the image file filenames in a field in a table.

[tab]2. Store the images files in a memo field and the image file filenames in a field in the same table.

You can then hard code the image file reference in the report as path\printout.jpg, copying either the file from its folder, or COPY MEMO TABLENAME.image_file TO path\printout.jpg as you loop through multiple reports.

Alternatively, you could pass a variable to a report or use a public variable.

If you go with the memo field idea, you can copy the image file to disc and use any graphics editor of your choice, which you will be unable to do with a general field.

It also has security advantages in that a user cannot modify an image file other than through your app, and if necessary you could include the table in the app.

If you stay with the general field idea and do not use LINKED when you append an image to the general field, you will embed an instance of the graphics editor in the general field as well as the image file.

This has implications on performance, space etc.

HTH

Chris :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top