NetTalk Central

Author Topic: print image on pdf  (Read 3232 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
print image on pdf
« on: July 30, 2012, 05:48:45 AM »
Hello please can anyone help with this, trying to print a report with a image logo on the header and have the image box on the header. i have tried with the code below to get the image file but it does not print the image.

Code: [Select]
Cli:Id=Doc:Client_Id!p_web.GetValue('Doc:Client_Id')
   Access:Client.Fetch(Cli:Key_Id)
   SetTarget(myReport)
    ?IMAGE1{PROP:TEXT}=CLIP('WEB\')&Cli:Company_Logo
    DISPLAY(?IMAGE1)
   SetTarget()

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: print image on pdf
« Reply #1 on: July 30, 2012, 10:45:21 PM »
I'd suggest putting some debugging in there - perhaps an
EXISTS(filename)
to see if the image name you are creating actually exists.

Also be aware, if you are using the SV PDF converter your image file has to be really small - it can't handle large images.

and, I'm not 100% sure, but I think SetTarget on a report takes a "detail name" as well as the report. Check the docs for more on that.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: print image on pdf
« Reply #2 on: July 31, 2012, 01:01:55 AM »
hi bruce thanks, got it to work my mistake been playing earlier with renaming the file name then forgot to delete some codes i was playing with, but after deleting it worked ok. thanks