Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

image in report.

Discussion in 'Information Technology' started by Stefan, Jul 28, 2006.

Tags:
  1. Stefan

    Stefan
    Expand Collapse
    Guest

    Hi,

    Private Sub Report_Page()
    Me.Afbeelding.Picture = Me.Foto
    End Sub

    With this code i can put an image on every page of my report. It works
    accept on the first page. I get no picture on page one.

    If i use the following code i can monitor the code; this code stops, even
    on the first page, but i get everytime (on every page) a wrong fotolink, if i
    continue the code the wright picture does appear.

    Private Sub Report_Page()
    linkfoto = me.Foto
    Stop
    Me.Afbeelding.Picture = Me.Foto
    End Sub


    So, how can i put the picture on my first page.
    --
    groeten,
    Stefan
     
  2. Loading...

    Similar Threads Forum Date
    Pilgrimage To Emnabad Blogs Apr 3, 2017
    1984 Images Revisited - YouTube History of Sikhism Nov 2, 2016
    Importance Of Tirath / Pilgrimage As Per Gurbani Gurmat Vichaar Jun 1, 2016
    He’s The World’s Best Water Photographer… And He’s Just Released These Haunting Images. Sikh Sikhi Sikhism Aug 30, 2015
    Nature Caterpillars Morph into Butterflies in Amazing 3D Images Breaking News May 15, 2013

  3. bob

    bob
    Expand Collapse
    Guest

    Is your image control in the Detail section (i.e. 1 image per record) ?

    If yes, use the Detail Format event, rather than the Report Page event, eg:

    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    Me.Afbeelding.Picture = Me.Foto
    End Sub

    --
    _______________________________________________________
    DBPix 2.0: Add pictures to Access, Easily & Efficiently
    http://www.ammara.com/dbpix/access.html





    =?Utf-8?B?U3RlZmFu?= <123@abc> wrote:
    >Hi,
    >
    >Private Sub Report_Page()
    > Me.Afbeelding.Picture = Me.Foto
    >End Sub
    >
    >With this code i can put an image on every page of my report. It works
    >accept on the first page. I get no picture on page one.
    >
    >If i use the following code i can monitor the code; this code stops, even
    >on the first page, but i get everytime (on every page) a wrong fotolink, if i
    >continue the code the wright picture does appear.
    >
    >Private Sub Report_Page()
    > linkfoto = me.Foto
    > Stop
    > Me.Afbeelding.Picture = Me.Foto
    >End Sub
    >
    >
    >So, how can i put the picture on my first page.
    >--
    >groeten,
    >Stefan
     
  4. Stefan

    Stefan
    Expand Collapse
    Guest

    Bob,

    Thanks, it works fine

    --
    Stefan


    "bob" wrote:

    >
    >
    > Is your image control in the Detail section (i.e. 1 image per record) ?
    >
    > If yes, use the Detail Format event, rather than the Report Page event, eg:
    >
    > Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    > Me.Afbeelding.Picture = Me.Foto
    > End Sub
    >
    > --
    > _______________________________________________________
    > DBPix 2.0: Add pictures to Access, Easily & Efficiently
    > http://www.ammara.com/dbpix/access.html
    >
    >
    >
    >
    >
    > =?Utf-8?B?U3RlZmFu?= <123@abc> wrote:
    > >Hi,
    > >
    > >Private Sub Report_Page()
    > > Me.Afbeelding.Picture = Me.Foto
    > >End Sub
    > >
    > >With this code i can put an image on every page of my report. It works
    > >accept on the first page. I get no picture on page one.
    > >
    > >If i use the following code i can monitor the code; this code stops, even
    > >on the first page, but i get everytime (on every page) a wrong fotolink, if i
    > >continue the code the wright picture does appear.
    > >
    > >Private Sub Report_Page()
    > > linkfoto = me.Foto
    > > Stop
    > > Me.Afbeelding.Picture = Me.Foto
    > >End Sub
    > >
    > >
    > >So, how can i put the picture on my first page.
    > >--
    > >groeten,
    > >Stefan

    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page