printing

How do I print from the wpf WebBrowser available in .net 3.5 SP1?

喜夏-厌秋 提交于 2019-12-24 00:37:25
问题 we are currently using a winforms WebBrowser control in our app in a WindowsFormsHost and printing by calling 'WebBrowser.ShowPrintDialog()' We have an issue with this in that the dialog does not appear to be modal and the parent window can be dismissed causing issues if a print is later attempted. I was looking at the new wpf webbrowser control in the hope that they will have fixed this issue when doing a similar thing themselves, but can find no way to print from it.. I found someone online

Barcodes and SSRS

廉价感情. 提交于 2019-12-24 00:36:49
问题 Good Day All, I am trying to get barcodes to print correctly in SSRS. I have the correct font installed on the report server and on the machine printing the report, the barcodes look correct on the screen but when you go to print the report it puts spaces in the barcodeand distorts it making it unreadable. How can I fix this issue without a ton of coding or complex solutions? Thanks 回答1: Not a direct answer to your question and I am not an expert in barcode. However following is what we are

Page break before table row

我怕爱的太早我们不能终老 提交于 2019-12-24 00:22:57
问题 I have a table where I want to force page breaks before certain TR's when printing, so I searched around and found Applying "page-break-before" to a table row (tr), seemed simple enough: set display to block and use page-break-before as usual. However, it doesn't seem to be working (at least not in Chrome 59, Windows). For example: <!DOCTYPE html> <html> <head> <style type="text/css"> tr.break-here { display: block; page-break-before: always; } </style> </head> <body> <table> <tr class="break

Printing HasMorePages not working c#

心已入冬 提交于 2019-12-24 00:14:13
问题 Alright so I have been looking around (on SO and Google) to see if a question could solve my error but apparently not, so here it goes: I am trying to print something that will sometimes have more than one page and I am checking how many pages there is to print. After checking all this logic, I use the HasMorePages property to set if there is another page or not. This is my code: int currentpage = 0; int pagesleft = 0; private void doc_PrintPage(object sender, PrintPageEventArgs ev) { ev

Print PDF as image from command line? [closed]

允我心安 提交于 2019-12-24 00:12:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is it possible to print a PDF as image using Acrobat Reader through command line options? Or this feature is only available through the GUI of Acrobat? 回答1: Unfortunately for you, the answer is "No!" . Printing PDF pages as an image is only available through the GUI in Acrobat Reader. To see a list with all

printing variable inside awk

情到浓时终转凉″ 提交于 2019-12-24 00:11:28
问题 In this script , I want awk to print the variables $file , $f , $order and sum/NR (all in a single row) #!/bin/bash for file in pmb_mpi tau xhpl mpi_tile_io fftw ; do for f in 2.54 1.60 800 ;do if [ ${f} = 2.54 ] then for order in even odd ; do # echo ${file}_${f}_${order}_v1.xls >> P-state-summary.xls awk '{sum+=$2} END {print ${file}_${f}_${order}_v1.xls, sum/NR}' ${file}_${f}_${order}_v1.xls >> P-state-summary.xls done else # echo ${file}_${f}_v1.xls >> P-state-summary.xls awk '{sum+=$2}

How to print something from a server with PHP? [closed]

自古美人都是妖i 提交于 2019-12-24 00:09:52
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I need to make my PHP application printing something using a printer connected to the server. In PHP 4.0, php_printer.dll existed, but it was discontinued. Does anyone have any idea or suggestion on how this

Python : raw_input and print in a thread

落爺英雄遲暮 提交于 2019-12-23 23:05:43
问题 I have a thread which can print some text on the console and the main program have a raw_input to control the thread. My problem is when I'm writing and the thread too I get something like this: -->whatiwWHATTHETHREADWRITErite but I would like to get some thing like this WHATTHETHREADWRITE -->whatiwrite Thank you! 回答1: You have to syncronize your input with the thread output preventing them from happening at the same time. You can modify the main loop like: lock = threading.lock() while 1:

Send file to printer, nothing is printed

旧城冷巷雨未停 提交于 2019-12-23 22:22:52
问题 I have this requirement where I must print a receipt from a Web Application. I've found the way to get the data in a String, generate a temporary text file, send it to the printer and delete the file. Everything is good except the print part, it generates nothing, a white document! I've checked my temp files before sending them to print and there is data there, maybe I'm sending the file in the wrong way or forgot to add a PrintPageEventHandler (I'm not so sure about this last one, or maybe I

Print gif using java on a 4x6" paper

你说的曾经没有我的故事 提交于 2019-12-23 21:26:49
问题 What is the best way in Java to print a gif given as byte[] or ByteArrayInputStream on a paper with a size of 4x6 inches? This: PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(new MediaSize(4, 6, Size2DSyntax.INCH)); aset.add(new Copies(1)); PrintService[] pservices = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.GIF, aset); DocPrintJob printJob = pservices[0].createPrintJob(); Doc doc = new SimpleDoc(sap.getGraphicImageBytes(), DocFlavor.INPUT