Print something

i’d like to control a printer and print a simple string. in c# it’s clear but patching is not. question 1, am i reinventing the wheel and there is a nuget for this ? question 2, if not, how to handle the printpageeventhandler ?

Have not actually tried to run it but I’d say the C# snippet you posted could look something like that

u7print.vl (14.2 KB)

If you’re always attempting to print the same thing the ForEach could be on Create as well but I guess that’s not what you’d do :-)

1 Like

mega cool, that makes sense to me.
it would be nice if the help browser or the graybook would mention the term “event” somewhere and show how its done in vvvv gamma. or i’m blind and could not find a reference to it.
this print example would be perfect, you have a short c# snippet and it’s translation in vvvv.

Just for reference: A thread about printing in the chat.

Just putting it here as a reference for future readers: here’s another demonstration of how events are used. It is being used to interact with a speech recognition API.

funny accident, how many empty pages can i print :)

2 Likes

Print_demo.vl (35.8 KB)
This is what I ended up using, if it helps. (based on the previous thread)