Page 1 of 1

How to close a file displqayed with gdViewer

Posted: Thu Jan 27, 2011 3:39 pm
by Mannemer
Hi,

I want to display images or pdfs in my program. Because I only want to show them, I use the gdViewer-object.
The loading with
Get ComDisplayFromFile of oComGdViewer1 "C:\~Scan\@scan.jpg" to iOK
or Get ComDisplayFromPdfFile of oComGdViewer1 "C:\~Scan\~Probe.pdf" "" to iOK
doesn't cause any problems.

But what I need ist the right way to close the files, so they aren't locked in my system.

I've tried the
Send ComClear of oComGdViewer1
but this causes a black viewer-object and if I move the scrollbars, the image is shown again and opened.

I've looked in the big documentation, but I haven't found the right command.

I hove, someone of you can give me the missing command.

Thx
Roman

PS: Don't wonder about the stange syntax of my program. It is programmes with Visual Dataflex.

Re: How to close a file displqayed with gdViewer

Posted: Thu Jan 27, 2011 6:22 pm
by Loïc
Hi,

You should try ComCloseImage

Kind regards,

Loïc