LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PrintPanel failes on panel areas which are visible on a secondary monitor. Why?

On a Windows XP Platform with 2 monitors the PrintPanel() function of CVI 7 prints only areas visible on the primary monitor, areas visible on the second monitor will be ignored.
I tried to use GetPanelDisplayBitmap() instead, which works on both monitors, but a function to print bitmaps is missing.
I need a solution for printing panels visible on the secondary monitor.

Kai
0 Kudos
Message 1 of 4
(2,831 Views)
Kai,

I've been trying to replicate this problem with no success. Could you provide some more details on how to replicate this problem?

In the mean time you could use the report generation tools to print the bitmap from the panel or to create a report with specific parts of you panel. You can find this functions at C:\Program Files\National Instruments\CVI70\toolslib\reportgen\nireport.fp.

I hope this helps... keep me posted.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 4
(2,831 Views)
Juan,
thank you for your answer.

Here a more detailed description of my problem:

System:
Windows XP pro SP1,
CVI 7.0 with cvirte.dll 7.0.0.394,

Dual Monitor Display:
Video Adapter
Primary: SAPPHIRE RADEON 9000 ATLANTIS PRO (64 MB),
Secondary: SAPPHIRE RADEON 9000 ATLANTIS PRO - Secondary (64 MB)
Monitor 1 Sony Trinitron E530 21"
Monitor 2 Maxdata Belinea 10 80 20 21"

Windows Display Properties:
Monitor 1 1280 x 1024, 32 bit
Monitor 2 1280 x 1024, 32 bit,
enabled "Extend my desktop onto this monitor."

Both Display Icons are aligned horizontally.

That gives a display of 2560 x 1024.

The problem:
If you use PrintPanel() on a panel. which is completely visible on the primary monitor it will be p
rinted completely.
If the panel is moved e.g. to the bottom so that only the upper half is visible, PrintPanel() will only print the visible upper half. That is ok.
If you move the panel completely to the secondary, in my settings the right monitor, PrintPanel() will produce an empty printout.
If you move the panel to a position, so that parts are visible on the primary and parts on the secondary monitor, only the parts on the primary will be printed.
In other words: The secondary monitor will be dealed by PrintPanel() as if it was NOT visible.

Other functions of the user interface library, e.g. GetPanelDisplayBitmap(),
do not fail on the secondary monitor.

The multi monitor related functions of the user interface library
GetMonitorAttribute(), GetMonitorFromPanel(), ... work well.

The windows screen dump with Alt+PrtSc keys works well either, independend on the panel position.

Regards

Kai
0 Kudos
Message 3 of 4
(2,831 Views)
Hello Juan,
You asked for more details.

I did send more details on 5/14/2004.
Is any chance to fix my PrintPanel problem?

Kai
0 Kudos
Message 4 of 4
(2,831 Views)