printPanel

Find and share HowTos to various installations / configurations!
8 posts • Page 1 of 1
eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

printPanel

Post by eMTy »

Hi guys,

can a panel be printed without the frame and the panelname?

kr
Michel

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: printPanel

Post by mkoller »

no

eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Re: printPanel

Post by eMTy »

Can I optionally change the title, if it isn't possible to remove it?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: printPanel

Post by mkoller »

It uses the panel title you defined in Gedi for this panel

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: printPanel

Post by fmulder »

Maybe the following is an option:

1) Open the panel in an 'embedded module'
2) Let the module safe itself into a bitmap on disk
3) Use a command line tool to print this bitmap
4) [optionally] delete the bitmap

The following link shows some options to print the bitmap:
http://stackoverflow.com/questions/2301 ... nt-picture

Good luck

eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Re: printPanel

Post by eMTy »

Thanks, I'll try that :) But how can I save a module as bitmap?

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: printPanel

Post by fmulder »

Just load the panel into an embedded module. Then use the method 'imageToFile()' that every shape has.

so:
MyModule.imageToFile( "c:/tmp/snapshot.png" );

Good luck !

eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Re: printPanel

Post by eMTy »

Thanks :)

8 posts • Page 1 of 1