[WD12] Showing a PDF-file in an image control on Win7

Startbeitrag von Stefan Bentvelsen am 02.11.2010 16:06


in my app I use an imagecontrol to show a pdf-file (one or more pages). That works OK on Windows XP and Windows Vista, but not on Windows 7. Anyone a suggestion why not ?

This is a snippit of my code:

CheckTempPDF() // Delete temp-file if it exist
IF HExtractMemo(gsBinfile,"element",gsPDFFile) THEN


It seems that no one shows PDF-files in an imagecontrol on Windows 7.
I will send a request to PC-Soft, but I'm still interested in ideas or suggestions.

von Stefan Bentvelsen - am 03.11.2010 08:41
Stefan, I did a small test and it works for me. (w7 professional).
Isn't it the HExtractMemo, which causes your problem. Due to restrictions on the temp-map or something like that? Try showing errorinfo() in the ELSE-part.

von Arie - am 03.11.2010 09:24
Hi Arie,

thanks for your response!
UAC is switched off, but I will try to show some errorinfo for the temp-map.

By the way, do you know a way to show a PDF-file in an imagecontrol WITHOUT saving it to disk first ?

von Stefan Bentvelsen - am 03.11.2010 09:35
can't you just link the image control to an item?

I see you mentioned Wd12. My software (the one used for this test) is in WD14. Maybe it is solved in 14?

von Arie - am 03.11.2010 09:58
Hi Arie,

Linking the imagecontrol to the (binary) item does work with an JPG-image or something (out the top of my head), but does not with an PDF-file.

I use WinDev12, but I'm also testing it in WinDev15 Express version. In WD15 Express it does not work either (linking to an item). I cannot test the display of a PDF-file in an imagecontrol in WinDev15 on Win7, because I don't have Win7 myself, only Xp and Vista, and there it works OK.

von Stefan Bentvelsen - am 03.11.2010 11:01
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.