How to close a file displqayed with gdViewer

Discussions about document viewing.
Post Reply
Mannemer
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

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.

User avatar
Loïc
Site Admin
Posts: 5702
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How to close a file displqayed with gdViewer

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

Hi,

You should try ComCloseImage

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests