Preview - everytime the same size

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Preview - everytime the same size

Postby wagner » Tue Oct 16, 2007 12:35 pm

I try to show an Image with the Picture Function. After the first attempt all other Images, which I created later, has the same size in the preview window. Notice, the Image is changed only the size not.

Here my C++ Code.

m_hVpe.OpenDoc();

m_hVpe.SetPageOrientation(2);

m_hVpe.Picture( 60, 60, VFREE, VFREE, cJPG_Datei, PIC_BESTFIT);

m_hVpe.Preview();

Why does the VPE stores the size from the JPG before?? How can I reset the preview.
wagner
 
Posts: 2
Joined: Tue Oct 16, 2007 12:21 pm

Postby IDEAL Software Support » Tue Oct 16, 2007 8:04 pm

This is, because you can not use one and the same file name for different images, due to the picture cache of VPE. See also this thread: http://idealsoftware.com/phpBB2/viewtopic.php?t=167
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby wagner » Mon Oct 22, 2007 10:48 am

Thank you, now it is working!!
wagner
 
Posts: 2
Joined: Tue Oct 16, 2007 12:21 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests

cron