How to close a file displqayed with gdViewer

Discussions about document viewing.
Post Reply
Posts: 1
Joined: Thu Jan 27, 2011 12:29 pm

How to close a file displqayed with gdViewer

Post by Mannemer » Thu Jan 27, 2011 3:39 pm


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.


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

User avatar
Site Admin
Posts: 5812
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: How to close a file displqayed with gdViewer

Post by Loïc » Thu Jan 27, 2011 6:22 pm


You should try ComCloseImage

Kind regards,


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest