Preview as MDI child in C#

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Preview as MDI child in C#

Postby rlizak » Tue Mar 20, 2007 5:23 pm

Is it possible to have the VPE preview window open as an MDI child on an MDI parent form? if so, how is this done?

Thanks,
--Rob.
rlizak
 
Posts: 7
Joined: Wed Feb 08, 2006 3:13 pm

Postby IDEAL Software Support » Tue Mar 20, 2007 9:55 pm

You can embed the VPE preview into any window. Just create your MDI window and use the created window as parent for the VPE Control. In addition set VPE.ExternalWindow = false before calling VPE.OpenDoc(), this instructs VPE to embed itself into the supplied parent window.

There are some other things to take care of when the VPE preview is embedded into another window: when the parent window is resized, the VPE window needs to be resized accordingly. Keyboard events need to be forwarded to the preview, which can be achieved by setting the focus to the VPE preview window when your MDI window receives the focus.

A fully working demo is shipped with VPE. The "Precision & Capabilities" demo demonstrates how to use the VPE preview in embedded mode.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 13 guests

cron