Mar 12, 2003 #1 nirajj Programmer Mar 12, 2003 103 US I have a picture in the report but I would like to change the picture file at runtime. Any ideas how I can do that ??? Thanks
I have a picture in the report but I would like to change the picture file at runtime. Any ideas how I can do that ??? Thanks
Mar 12, 2003 Thread starter #2 nirajj Programmer Mar 12, 2003 103 US I found the solution !!! Created a cursor with General field type to hold my picture. CREATE CURSOR MyGenTbl (mygenfield G) APPEND BLANK APPEND GENERAL mygenfield FROM "picture.bmp" In the report change the picture property "Picture from" to field "MyGenTbl.mygenfield" Works great. Thanks !!!! Upvote 0 Downvote
I found the solution !!! Created a cursor with General field type to hold my picture. CREATE CURSOR MyGenTbl (mygenfield G) APPEND BLANK APPEND GENERAL mygenfield FROM "picture.bmp" In the report change the picture property "Picture from" to field "MyGenTbl.mygenfield" Works great. Thanks !!!!
Mar 15, 2003 Thread starter #4 nirajj Programmer Mar 12, 2003 103 US Bestiutza ...Thanks to the ppl who might hv spend time to find the solution to my query or give me useful feedback..!!! Upvote 0 Downvote
Bestiutza ...Thanks to the ppl who might hv spend time to find the solution to my query or give me useful feedback..!!!
Mar 15, 2003 #5 spokex Programmer Jul 26, 2002 17 US You can also use a public variable to store the path to the picture you want to display. set the picture property in report designer to 'file', and use the variable name, say pix for example. Then in your code: public pix pix = 'c:\yourapp\graphics\stdpic.jpg' repo form yourform Just change pix value to whatever the path is to the picture you want to display, before running the report. Upvote 0 Downvote
You can also use a public variable to store the path to the picture you want to display. set the picture property in report designer to 'file', and use the variable name, say pix for example. Then in your code: public pix pix = 'c:\yourapp\graphics\stdpic.jpg' repo form yourform Just change pix value to whatever the path is to the picture you want to display, before running the report.