Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Sending data from Unity to Printer

Discussion in 'Scripting' started by zeoyn, Oct 23, 2009.

Thread Status:
Not open for further replies.
  1. zeoyn

    zeoyn

    Joined:
    Oct 23, 2009
    Posts:
    6
    Hi,

    I haven't been able to find any information regarding sending information to a printer.

    We are creating an application in which we would need to print a screen and a bunch of information in a printer, after the client interacts with a 3D model.

    Is there any way to cennect directly with a printer or which would be the best way to do it?

    Thank you for your help.

    Z.
     
  2. tigerspidey123

    tigerspidey123

    Joined:
    Jun 25, 2009
    Posts:
    67
    I had to do similar thing for my game, after game is over, it prints out stats such as scores and stuff. What I ended up doing is wrote an executble from C# using .Net to execute print. When it's done, I use unity to call the executble, of course you would pass in parameters such as printing pictures, or string(where string can be any true type font) and the position on the page and so on.

    Now if you want screen shot it would be more complicated, because then you would have to actually have a way capture screen shot in real time, and store it and send to printer's .exe before printing.

    Now remember, this will only work with your standalone, since you can actually put your printer .exe file inside the build version of your actual project, and run the printer .exe in the background. You can't do that with web application and so on.
     
  3. zeoyn

    zeoyn

    Joined:
    Oct 23, 2009
    Posts:
    6
    Thank you. :)
    That was really helpful.
    I will explore a bit more following your guidelines.

    Regards,

    Z.
     
  4. ramkesh

    ramkesh

    Joined:
    May 15, 2019
    Posts:
    10
    Hey ...I got this on YouTube . Hope it will help you.
     
Thread Status:
Not open for further replies.