PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Display pdf in Image Control [WebDev]
Display pdf in Image Control [WebDev]
Débuté par PrinceFemiAdeniyi, 15 mar. 2020 12:35 - 2 réponses
Membre enregistré
31 messages
Popularité : +1 (1 vote)
Posté le 15 mars 2020 - 12:35
Hi All,

The image control is not displaying pdf files loaded via upload. But display jpeg and other images.

See my code below:

ImgFileName, FileName,ImageInfo, Format are strings
Height, Width, FileSize are int

FOR i = 1 _TO_ MySelf..Occurrence

ImgFileName = UploadCopyFile(MySelf, fWebDir() + "\TmpImg", "", i) //MANY FILES

FileName = fWebDir() + "\tmpimg\" + ImgFileName

FileSize = fSize(FileName)
ImageInfo = BitmapInfo(FileName)
Format = ExtractString(ImageInfo,1)
Width = Val(ExtractString(ImageInfo,2))
Height = Val(ExtractString(ImageInfo,3))
IF Format="BAD" THEN
Info(ImgFileName + " " + Format + " Image file. Cannot Interpret.")
ELSE
SignBuffer = fLoadBuffer(FileName)
imgLogo = SignBuffer
END
END


What am i doing wrong?

Many thanks in advance

Femi

--
Thanks in advance
Femi
Posté le 16 mars 2020 - 16:14
you are possibly missing the pdf dlls in your installed wx framework... add them manually and try again
Membre enregistré
31 messages
Popularité : +1 (1 vote)
Posté le 16 mars 2020 - 18:42
Thanks Argus,

Could you direct me on how to add the dlls?

TIA

Femi

--
Thanks in advance
Femi