Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting a BMP into a General Field
Message
 
To
14/10/2002 14:07:43
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00711050
Message ID:
00711082
Views:
7
Are you printing the same BMP for all detail records in the report ... or does each detail record have a different BMP? Instructions for both are as follows:


#1 -- Same BMP for entire report:

Define a local variable in the code that calls the report and set it to the full path name of the BMP.

#2 -- Different BMP for each detail record:

Add a character field to your table or cursor that the report runs from. In that field, store the full pathname of the BMP for each detail record.

For both #1 and #2, define the report as follows. Add a picture object to the report. Set the "PICTURE FROM FILE" to either:

#1: the local variable (e.g. lcBMPName)
#2: the name of the field (e.g. MyTable.MyField)

Notice that I said "FILE" and not "FIELD" which is a common mistake. Also, be sure to select the "Scale Picture / Retain Shape" option so the BMP is adjusted to fit within the area you define.

I hope this helps,
Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform