C++ CLR Windows Form Application (Printing to the Printer)
-
Sorry, but I cannot guess where the problem occurs. You need to step through the code to find out what reference has not been set. Also use the stacktrace to see where was the last actual step in your code.
Use the best guess
ok ok ... thank you so so much... i will see with myself where i did wrong... but anyway if u have time and without disturbing you, ill be very happy if u make a form for me just to print ot the prnter something when button clicked... it need just 5 minutes to do... anyway if u cant its oki.. Thank You for ur time.
-
ok ok ... thank you so so much... i will see with myself where i did wrong... but anyway if u have time and without disturbing you, ill be very happy if u make a form for me just to print ot the prnter something when button clicked... it need just 5 minutes to do... anyway if u cant its oki.. Thank You for ur time.
We don't do this for people. Imagine how many requests we get from people wanting us to do this bit of work, or that bit of work for them. It's not just the writing of the code; you would need descriptions of what we added and why so that you can modify it for yourself.
I was brought up to respect my elders. I don't respect many people nowadays.
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier -
We don't do this for people. Imagine how many requests we get from people wanting us to do this bit of work, or that bit of work for them. It's not just the writing of the code; you would need descriptions of what we added and why so that you can modify it for yourself.
I was brought up to respect my elders. I don't respect many people nowadays.
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier -
Sorry, but I cannot guess where the problem occurs. You need to step through the code to find out what reference has not been set. Also use the stacktrace to see where was the last actual step in your code.
Use the best guess
We need serious help here! Appreciate any technical advise and sample codes. We are facing the same problem. My programmers are struggling for weeks to try to understand how to format and print a report in MFC (C++)? It is so simple in JAVA. Why is the MFC environment technically so difficult to format and print a report, which is the most common things (output a formatted report) that an application wants to do. It seems that each and every developer have to construct their own codes to format & print a report in MFC C++. Is there any relevant sample code (formatting and printing a report) that can be downloaded and modified?
-
We need serious help here! Appreciate any technical advise and sample codes. We are facing the same problem. My programmers are struggling for weeks to try to understand how to format and print a report in MFC (C++)? It is so simple in JAVA. Why is the MFC environment technically so difficult to format and print a report, which is the most common things (output a formatted report) that an application wants to do. It seems that each and every developer have to construct their own codes to format & print a report in MFC C++. Is there any relevant sample code (formatting and printing a report) that can be downloaded and modified?
-
kklim wrote:
My programmers are struggling for weeks
It took me less than a minute to find Printing with MFC Made Easy[^].
Veni, vidi, abiit domum
-
Richard, Thanks for your pointer. Very helpful indeed! Appreciate if we can also get your advise on how to print to a network (IP) printer? We are using HP laser printer, connected over a LAN.
-
Thanks again. Somehow, we tried many times, but it does not work. Do we need to get the printer handler (or context of the printer) before we can output to it? If so, can what are the functions to do so?
All printing in Windows goes through the same route and print data is passed to the printer drivers to be rendered onto the physical device. It does not matter whether the printer is parallel, USB, network, WiFi or Bluetooth, they all work in the same way. If you have problems with a specific device then you need to diagnose why it is not working.
Veni, vidi, abiit domum
-
All printing in Windows goes through the same route and print data is passed to the printer drivers to be rendered onto the physical device. It does not matter whether the printer is parallel, USB, network, WiFi or Bluetooth, they all work in the same way. If you have problems with a specific device then you need to diagnose why it is not working.
Veni, vidi, abiit domum