Changing Images Dynamically at the Detail Level

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Rob Diamant (rob_at_usi.com)
Date: 12/01/04


Date: Wed, 1 Dec 2004 10:24:25 -0600

Using .NET and RDC 9. I am able to change a picture (in a subreport) to
dynamically load from a bitmap based on the example in Brian's book.

However, I am having a problem and can use any suggestions.

When I try to change the picture in the Detail Section, all the pictures
display as whatever the last bitmap is set to. The weird thing is, each
image is resized to the dimensions of the specific bitmap for the detail row
it is set to. So it seems that it is partially working. Unfortunately, I
cannot store the images in the database, we only store the file path.

TIA

Rob



Relevant Pages

  • Re: Zoom in/ Zoom out images
    ... Picture control in the same dialog. ... As soon as you leave this function the destructor is called and the bitmap object is ... The drawing must be done in the OnPaint handler. ...
    (microsoft.public.vc.mfc)
  • Re: One Thing I Noticed - Line Too Long
    ... > that creating a VB Autoredraw picture box automatically creates a separate ... > because you said it uses too much memory because it creates two bitmaps. ... > create an otherwise non existent bitmap in video card memory! ...
    (microsoft.public.vb.general.discussion)
  • Re: Graph Plotting - Mike
    ... the main picture box?". ... creates contains a bitmap and all of the details as to how Windows is to ... The device context that it creates is compatible with the device you ... in memory that contains the 'attribute'. ...
    (comp.lang.basic.visual.misc)
  • Re: Zoom in/ Zoom out images
    ... Picture control in the same dialog. ... As soon as you leave this function the destructor is called and the bitmap object is ... The drawing must be done in the OnPaint handler. ...
    (microsoft.public.vc.mfc)
  • Re: LoadImage API
    ... >> The .bmp never shows in the picture box. ... > loads a bitmap and resizes it according ... > returning the handle of the bmp object for you. ... > device context and then "blits" it into a picture box. ...
    (comp.lang.basic.visual.misc)