I'm writing/debugging an iPhone project that uses a large portion of C++ for image processing. I'm having trouble when I'm using gdb under Xcode because whenever I print values, they are completely out of whack with the true values (comparing
cout << "width" << width << endl; prints out 320, and if I do a
print width in gdb, I g...
I have a Star TSP600 thermal receipt printer attached to my macbook via usb. The drivers are installed, and I can print to it using the normal Mac print dialog.
How I can construct a program to send text to the printer? Is there a guide to basic printing interfaces? I generally work in Python, and I'd be willing to learn another langua...
I'm looking at designing an application to run on POS terminals in addition to the software already installed. I'd like it to receive POS printer commands and then on some of them intercept and modify them. So for example when a receipt is printed, we'd like to add a custom reference number in the middle of it without having to modify th...
Is there a way of printing arrays in C++?
I'm trying to make a function that reverses a user-input array and then prints it out. I tried Googling this problem and it seemed like C++ can't print arrays. That can't be true can it?
...
I have some code which intercepts the Before_Print event in excel to make sure that the user has filled in all the required fields before they print the sheet. However, I only want this code to fire when the user is actually printing, not when they are just calling the print preview.
Is there any way to tell in the Before_Print code wh...
In our VB6 application, when the user's default printer is set to Microsoft Office Document Image Writer the following line of code causes the application to throw error number 380 (Invalid property value).
Printer.Orientation = vbPRORLandscape
If you are unfamiliar with what this line is doing, it is responsible for ensuring that the...
I am building a web application that needs to print directly from browser, however, It should be very precise, right now I am using absolute positions and specifying left and top with pixels. How ever each browser prints in different places of the page, I also got different font sizes. How could I get same results?
Edit: this is a simpl...
I have some HTML content that I need to print. For other printing tasks, I've had great success using the PrintDialog class by grabbing a grid out of my resources, setting the grid's DataContext property to a ViewModel, and then passing the grid to the PrintVisual method.
I tried using the above method to print HTML by instantiating a S...
The customer wanna preview mpp content without open Project Professional.So I decide to convert mpp file to image file.
I already know that the Project Application interface has a method named EditCopyPicture can output to GIF,but when mpp is very large,gif doesnt look very vell.My boss tell me output to tif is a good solution.
I found...
For some reason, in Internet Explorer 6, I cannot get window.print(); to actually work within jQuery. Any ideas why this isnt working?
<script>
$(document).ready(function(){
function print() {
window.print();
return false;
}
$("a#test").click(function() {
print();
});
});
</script>
Here is my jsbin: http://jsbin.com/...
Hi,
Does anybody know the "magic trick" for printing gray lines in an MFC/VS6 based application, using the PS_SOLID style?
It works when printing to PDF, but I just get black lines when printing to my black/white laser printer. It also works with the PS_INSIDEFRAME style, but it seems strange to me that a normal PS_SOLID can't do gray...
Hello,
I am able to get the name of printer which I had installed previously on my PC.But now its not physically connected to my pc. How should I check it first before moving to Print() in Java.
...
I have simple text file, and i have to print it using WPF. How can i print this file with specified printer setting(like margin, print on both side).
...
I want to display the progress of a calculation done with a DO-loop, on the console screen. I can print out the progress variable to the terminal like this:
PROGRAM TextOverWrite_WithLoop
IMPLICIT NONE
INTEGER :: Number, Maximum = 10
DO Number = 1, MAXIMUM
WRITE(*, 100, ADVANCE='NO') REAL(Number)/REAL(Maximum)*100
100 FORMA...
Hi!
I'm printing a WPF grid. As long as the data fits on one page, everything works fine. But sometimes the grid contains more data. Therefore I need to split the grid into multiple pages. Can anybody help me?
My code looks like this (visual is the grid).
var printCapabilities = printDialog.PrintQueue.GetPrintCapabilities(printDialog....
I have a PDF created in memory using iTextSharp and contained in a MemoryStream. I now need to translate that MemoryStream PDF into something the printer understands.
I've used Report Server in the past to render the pages to the printer format but I cant use it for this project.
Is there a native .Net way of doing this? For example, G...
Hi,
I need to make sure that the connection to a POS printer is successful before writing data to the database and then printing a receipt. The POSprinter is normally of type BTP 2002NP but may differ. The common thing is that they are all connected via COM-port and NOT usb, so no drivers installed at all on the client.
Can I send some...
I have a problem where a very tall <textarea></textarea> control doesn't fit on an A4 page when the web page is printed. On the web page inside a browser, the textarea displays just fine, but when I go to print it the bottom of the textarea gets chopped off the bottom of the page, it doesn't continue to print onto the next page. I have t...
Even without a "printer-friendly" view to print directions, when I choose "File->Print" in my browser, the page is formatted differently than the original view. How does Google achieve this? Is it a special javascript facade?
...
Hi there
I'm highly annoyed because I've been trying to print excel charts in word and I'm not getting any love. I have 170 graphs or so that need to be put into word (so I can have 2 per page) and then printed as an Appendix to a report. I'm transferring the graphs by dragging the actual excel file and dropping into word as this is the...