printing

C# CUSTOM VKP80iii Paper Ejector/Paper Cut

人走茶凉 提交于 2020-01-24 19:25:12
问题 I am using RawPrinterHelper class to print on a Custom VKP80iii. I can print but I cant Cut and Eject the Paper. Does any have a code which Cuts and Ejects the Paper? I tried a lot of Commands but none worked. The last command I found but also didn´t work was : string cutpaper = "" + Convert.ToChar(29) + Convert.ToChar(101) + Convert.ToChar(3) + Convert.ToChar(32); RawPrinterHelper.SendStringToPrinter(pd.PrinterSettings.PrinterName, cutpaper); 回答1: After the kind support of Custom, the

Javascript print in a new window won't display images

十年热恋 提交于 2020-01-24 18:09:45
问题 I'am struggling with a problem and I was hoping you can help me. I created a function that prints out data from inputs in a page. However, logo I am using on a print page won't be displayed like as if a link to the image is broken. Any thoughts? Here is the code: function printReport() { win=null; var vin = $("input[name='vin']").val(); var make = $("select[name='make']").val(); var printData = '<table width="960" border="0" align="center"> <tr> <td colspan="2"><img src="http://localhost/site

Hide/show divs when printing to printer

烈酒焚心 提交于 2020-01-24 07:55:33
问题 Is it possible to click on a button/image/link on a page and include/exclude other elements from being printed? (on an actual printer) I'd like to give the users the selection of which elements to print. Is this feasible with jQuery of Javascript? Edited for better understanding: I'd like to let the user choose which parts of the page he wants to print by adding a print this/don't print this button next to each div, overriding the default settings i've set in my print.css file. Update: After

Hide/show divs when printing to printer

拟墨画扇 提交于 2020-01-24 07:55:07
问题 Is it possible to click on a button/image/link on a page and include/exclude other elements from being printed? (on an actual printer) I'd like to give the users the selection of which elements to print. Is this feasible with jQuery of Javascript? Edited for better understanding: I'd like to let the user choose which parts of the page he wants to print by adding a print this/don't print this button next to each div, overriding the default settings i've set in my print.css file. Update: After

printdocument adds blank page

偶尔善良 提交于 2020-01-24 06:45:40
问题 I'm trying to print data from a database using printdocument and i got it to where it prints the data from the specified range but there are still 2 things that go wrong the things that still don't work like intended are on printing if a page is almost fully used it adds a blank page with only a header printed on it and if a page is full the next page starts with the first item of the range again (FIXED by using multiple lists because i couldnt figure out how to make a list with sublists)

Why is there a 1 at the end of my printed array?

非 Y 不嫁゛ 提交于 2020-01-24 05:19:12
问题 This is a super simple array print, but I'm getting at the end when I use print_r. <?php $user_names = array(1, 2, 3, 4); $results = print_r($user_names); echo $results; ?> Then I get: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) 1 回答1: print_r already prints the array - there is no need to echo its return value (which is true and thus will end up as 1 when converted to a string): When the return parameter is TRUE, this function will return a string. Otherwise, the return value is TRUE. The

How to write print css to get print from web pages in almost same manner as we get from MS word?

ぃ、小莉子 提交于 2020-01-24 04:00:57
问题 How to make cross size and cross browser compatible print CSS for World's most use paper sizes to get print? A4, A3, Legal etc How we can same almost similar formatting to our site page's like MS word ? What are best practices to get consistency in formatting of print page from any popular browsers? How to set cross browser margin and font-size with consistency for all like MS word does? Is css font-size unit em best for both screen and print? or we should use pt or px in print css? and i saw

Qt How to print information via QPrinter?

最后都变了- 提交于 2020-01-24 01:30:09
问题 I've created new Qt C++ project. I want to use my printer to print out some message on a sheet of A4 paper. I am reading the documentation whole day and i can't figure out how to do this. I understood most of the things (only in the documentation), but the problem is that, that i don't know actually which of all printer libraries i should use? (PrinterDialog, qprinter, qpainter....)? I saw all code examples, but neither one of them works. My other question is what function should i use to

PagesPrinted field of job_info_2 not reliable for hp printers on windows 7, value depends on print processor

心不动则不痛 提交于 2020-01-24 00:31:11
问题 PagesPrinted field of job_info_2 not reliable for hp printers on windows 7, value depends on print processor I'm developping a print monitor, and for hp printer PagesPrinted is not reliable et has wrong values 回答1: The print driver for your printer is apparently calling SetJob with incorrect page count values. There's probably nothing you can do about that. Therefore, the only way to get an accurate page count is to parse the print data stream and count the pages yourself. The printer in

flutter capture the widget to image and then create PDF file to printer

吃可爱长大的小学妹 提交于 2020-01-23 17:35:08
问题 My flutter app captures the widget to image and then creates PDF file to printer, but it shows ridiculous result as below picture. Let me know if you have any better method to print Chinese character and qr image to a receipt (bluetooth printer with paper width 75mm) Here with the widget: RepaintBoundary( key: _renderObjectKey, child: ListView( children: <Widget>[ Form( key: tableNumberFormKey, child: ListTile( title: TextFormField( initialValue: "", style: TextStyle(fontSize: 48.0),