AnsweredAssumed Answered

vrf .Net Printing???

Question asked by VRFuser on Oct 22, 2007
Hi Steve,
 
I've been trying to do the same thing.  I'm using a .NET richtext box control in my program now (there is actually an example for this in VEE 7.5) and the formatting is great, but I have the same problem as you do - I can't figure out how to print it.  What I've read so far on how to do it seems incredibly complex for such a seemingly simple thing to do (at least, one would think it's a common thing to WANT to do, anyway).  It involves using the windows API, which you can apparently do through .NET.
 
Here is the link:
 
http://msdn2.microsoft.com/en-us/library/ms996492.aspx
 
If you manage to figure this out, or, hopefully, find an easier solution, please let me know!  I'll do the same.
 
Reiner

  _____  

From: Steve Ortiz [mailto:ortiz.steve@gmail.com]
Sent: Friday, October 19, 2007 11:50 PM
To: VRF
Subject: [vrf] .Net Printing???


Hi,

I'm trying to get some formatted text into a window within a VEE panel.  I want to be able to control the font size and color and make a report with some tab delimited columns.  I also want to be able to print out the report only, not a screen print.

I understand one can do this by hooking into MS Word, but I don't know how to do this WITHIN the VEE panel.  I've found some nice Rich Text Box examples and can use those to make the data appear the way I like within a panel.  I  started in VEE 7.5 with the Active X example, but it seems in order to print it requires a license for an ActiveX control that I don't have.  Looks like I'd have to buy the Visual Studio software to get the license for the right path here.  But that's not really too appealing to me.

I've since moved to VEE 8.0 and see the Rich Text Box example now uses some .Net code.  It seems that I could print out the report by invoking the right .Net commands, but I'm not having much luck here.  The .Net examples I can find seem vb specific.  I couldn't find any examples for printing .Net objects from VEE.  Has anyone done this?

It seems like this is a pretty basic need for VEE.  There must be many solutions.  Perhaps I'm going about this the wrong way.  Any suggestions?

Thanks,
Steve Ortiz
--- You are currently subscribed to vrf as: reiner.schlieker@siemens.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".  

Outcomes