Dynamic LOGO for Report (1 Viewer)

Dipo

New member
Local time
Today, 10:18
Joined
Jul 8, 2021
Messages
24
Hello, is there a way of making logo on report dynamic such that user only need to upload/modify logo at data entry level?
 

CJ_London

Super Moderator
Staff member
Local time
Today, 10:18
Joined
Feb 19, 2013
Messages
16,610
Yes - but not enough info to provide a targeted response.

1. Store your logos in a suitable folder
2. In an appropriate table have a field to store the path and file name for the logo populated by user choice
3. for the report use an image control and set the controlsource to the name of the field
 

Dipo

New member
Local time
Today, 10:18
Joined
Jul 8, 2021
Messages
24
Yes - but not enough info to provide a targeted response.

1. Store your logos in a suitable folder
2. In an appropriate table have a field to store the path and file name for the logo populated by user choice
3. for the report use an image control and set the controlsource to the name of the field
What kind of field type is most suitable? OLE or Attachment?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 02:18
Joined
Oct 29, 2018
Messages
21,471
Please don't hesitate to ask follow up questions, if something is not clear.

CJ said: "... have a field to store the path and file name for the logo..."

I am saying that field has to be a Short Text data type field.
 

Dipo

New member
Local time
Today, 10:18
Joined
Jul 8, 2021
Messages
24
Please don't hesitate to ask follow up questions, if something is not clear.

CJ said: "... have a field to store the path and file name for the logo..."

I am saying that field has to be a Short Text data type field.
This will require that subsequent logo upload must be defined as per name and file type. Is it possible to make it less rigid such that you just need to pick and drop new logo and auto update on the report?
 

CJ_London

Super Moderator
Staff member
Local time
Today, 10:18
Joined
Feb 19, 2013
Messages
16,610
This will require that subsequent logo upload must be defined as per name and file type
which you do in the table per post #2

make it less rigid such that you just need to pick and drop new logo and auto update on the report?

not too sure what this means but if a user can change logo for one report to the next, use a combo box on the table mentioned above
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 05:18
Joined
Feb 19, 2002
Messages
43,266
If the report's logo doesn't change, you would use an image control that references the image. I don't import them but if you have only a few, that might be easier.

Your original request sounded like the logo was data driven. ie. you run the report for Company1 and it shows Company1's logo. You run it for Company2 and it shows Company2's logo. Please clarify because this is what you were given directions to do.

Here is code from one of my apps. It also makes some fields visible or not visible depending on the type of transmittal.
Code:
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)

    If Forms!frmCreateTransmittal!cboStageID.Column(2) = "Approval" Then
        Me.txtExpectedReturnDT.Visible = True
        Me.lblExpectedReturnDT.Visible = True
    Else
        Me.txtExpectedReturnDT.Visible = False
        Me.lblExpectedReturnDT.Visible = False
    End If

    If Me.LogoPath & "" = "" Then
    Else
        Me.imgLogo.Picture = Me.LogoPath
    End If
End Sub
 

Dipo

New member
Local time
Today, 10:18
Joined
Jul 8, 2021
Messages
24
Thanks, you perfectly understood my task.
 

Users who are viewing this thread

Top Bottom