Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Size problem when adding pic to Crystal report in Runtime

Size problem when adding pic to Crystal report in Runtime

Scheduled Pinned Locked Moved Visual Basic
csscomhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    soporificeffect
    wrote on last edited by
    #1

    Hi, I am using VB6 with Crystal Report viewer. I wrote a function that adds a picture to the report in runtime using OLEObject. here is the code I'm using: Set CrPic = CRXReport.Sections(NewPicture.Section).AddPictureObject(NewPicture.Path, NewPicture.XLoc, NewPicture.YLoc) CrPic.Width = NewPicture.Width CrPic.Height = NewPicture.Height the picture appears where I told it to be and in the requested size. However, it seems that when I first load the picture into the OLE, it "takes" the size of the original picture, and doesn't change it after I change the size. So I have a lot of blank space. I'm looking for a way to either make the OLE take less space from the beginning, or force some sort of refresh of the report. Any suggestions? Thanks.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups