Avatar of geocoins-software
geocoins-software

asked on 

Default image in ReportBuilder's ppDBImage

I would like to place a default JPEG image in a ppDBImage that is empty.

Where is a good place to do this.   Of course, I would like to show this default image in the print preview and also on the print out
(if the ppDBImage does not find a image in the database)


var
 JPG: TJPEGImage;

begin
 if (ppDBImage3.Picture.Graphic.Empty) and (gAlbumShowPlaceHolders) then
 begin
  Jpg := GetResourceAsJpeg('place_holder_obverse');
  ppDBImage3.Picture.Bitmap.Assign(Jpg);
  Jpg.Free;
 end;
end;


Thanks
Delphi

Avatar of undefined
Last Comment
Johnjces
ASKER CERTIFIED SOLUTION
Avatar of Johnjces
Johnjces
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Delphi
Delphi

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

60K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo