Results 1 to 3 of 3

Thread: Setting Image source in Data Report

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Posts
    108

    Setting Image source in Data Report

    Is there anyway that I can set the picture of an image control I placed in the data report through code? I typed the code below but an error comes up saying that object doesn't support property or method.

    Code:
    With rptPAR
    
        .Sections("Section5").Controls.Item("Image1").Picture = LoadPicture(App.Path & "\MW6Demo.wmf")
        
        .Show vbModal
    End With

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Setting Image source in Data Report

    Have you tried a jpeg or bitmap if it works?

    Edit:
    I tried it and it works if you will use Set.
    Code:
    SET .Sections("Section5").Controls.Item("Image1").Picture = LoadPicture(App.Path & "\MW6Demo.wmf")
    Last edited by dee-u; May 20th, 2009 at 02:32 AM.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    910

    Re: Setting Image source in Data Report

    Does anyone know how to do this using crystal reports?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width