D
Dullais
Guest
Hello,
I'm using VS2019 to learn C++, so far my first steps was successful. Right now i want to send simple text string to my printer to be printed out on paper. There are many example written on C#, but i can't find anything usable for C++.
Using these lines of code i'm able to print out empty page:
PrintDialog^ dlgPrint = gcnew PrintDialog;
PrintDocument^ docPrint = gcnew PrintDocument;
dlgPrint->Document = docPrint;
docPrint->Print();
I can't figure out how to pass my string to be printed out. If it's not possible, maybe there is simple way to send text document to printer, that could be solution.
Thanks is advance.
Continue reading...
I'm using VS2019 to learn C++, so far my first steps was successful. Right now i want to send simple text string to my printer to be printed out on paper. There are many example written on C#, but i can't find anything usable for C++.
Using these lines of code i'm able to print out empty page:
PrintDialog^ dlgPrint = gcnew PrintDialog;
PrintDocument^ docPrint = gcnew PrintDocument;
dlgPrint->Document = docPrint;
docPrint->Print();
I can't figure out how to pass my string to be printed out. If it's not possible, maybe there is simple way to send text document to printer, that could be solution.
Thanks is advance.
Continue reading...