printing

Canvas print - wpf

丶灬走出姿态 提交于 2019-12-25 01:37:29
问题 I used these code in order to print out the UI. Printing out is working, but if the size of paper is over, the UI cuts off in the middle of a canvas. Is there any possible way not to be cut off in the middle? <--cs code--> PrintDialog dialog = new PrintDialog(); dialog.PrintVisual(lst , "print"); <--Xaml --> <ListView Name="lst"> <Grid Name="grdPrint"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <Canvas Grid.Row="0" > ....... </Canvas> <HListBox x:Name=

Silverlight 5 printing garbled Reports

可紊 提交于 2019-12-25 01:34:38
问题 I am using a C1ReportViewer control, and have already posted a question on the C1 forums, however i thought i would post here as well to see if anyone had run across a similar issue. The control uses the generic silverlight PrintDocument() method. When printing a Crystal Report from this control in Silverlight 5 sometimes the report prints out garbled, meaning different sized text, tapered lines and generally out of position. It also rarely prints the entire report. I have narrowed the issue

Server side printing in PHP 5

不想你离开。 提交于 2019-12-25 01:33:13
问题 How can i print my html file via php script? I just want to run it in background without any prompt. I have read other posts regarding this but still didnt find anything working. I tried this one : <?php $dir = "temp"; // the folder that you are storing the file to be printed $file = "file.html"; //change to proper file name $file_dir = $dir.$file; $server = "home_computer"; //name of the computer you are printing to on your network $printer = "HP"; //printers shared name $command = "print

CSS: @media print without external css file?

不打扰是莪最后的温柔 提交于 2019-12-25 00:58:07
问题 I want to print a html page in a specific way under css. But all the @media print examples seem to have an external .css file I want to be able to do it without an external file which means there will be no link rel tag: <LINK REL="stylesheet" MEDIA="print... How do I do this? 回答1: I would suggest using an external stylesheet but you can how ever do this on the same page as your HTML if you really want to, an example of this would be like so, HTML / CSS <!DOCTYPE html> <html> <head> <style>

Delphi duplex printing

一笑奈何 提交于 2019-12-25 00:37:52
问题 I have a PVC card printer which prints on both sides of a card at the same time. take a look at this question: Delphi double-side printer I managed to enable the duplex printing mode of the printer. now the problem is that the first page which is the front side of the card is printed fine but the back side which is the second page is printed in black and white and a very low quality. something like a monochrome bitmap. this is the output of my program which is printed using MS XPS document

Passing Parameters to the print method (JAVA)

谁说我不能喝 提交于 2019-12-25 00:20:30
问题 I need some help with my code. What i need it to do is everytime a page is added to the Java Book different data needs to be on the page every time. I've tried it a number of different ways and i just can't work it out! Here's my code: dataBase data = new dataBase(); int userCountAmount = data.getAmountOfUsers(); Book bk = new Book(); PrinterJob PJ = PrinterJob.getPrinterJob(); String[] pupilName = new String[userCountAmount]; String[] parentsName = new String[userCountAmount]; int parCount =

two dimensional hash data output?

六月ゝ 毕业季﹏ 提交于 2019-12-24 23:17:18
问题 this my code.At the end of this process I want to collect name and sum results with ascending order and want to print.I tried to take the as @sum1 and @sum2 but it couldn't know @sum functions.How can I do that or any idea will be very valuable. #!/usr/bin/perl use strict; use warnings; use List::Util qw( sum ); use Data::Dumper qw(Dumper); my %grades; $grades{"Ahmet"}{quiz1} = 97; $grades{"Ahmet"}{quiz2} = 67; $grades{"Ahmet"}{quiz3} = 93; $grades{"Mehmet"}{quiz1} = 88; $grades{"Mehmet"}

Adobe pdf printer doesn't creating the pdf file

纵饮孤独 提交于 2019-12-24 22:52:06
问题 I'm creating an add-in in Revit 2017. The addin will export drawing sheets to PDF files. So, whenever I try to export the sheet a dialog box appears to choose the location to save. I tried to turn off the Prompting programmatically by adding a key to the Windows registry (as described in Adobe documentation page 15-16). Now, the prompting got turned off and now I'm facing an issue. The issue is the Adobe Printer got stuck while creating the pdf file . See the below image: The PDF creating

how to print dynamic 2D list in an aligned manner in python?

蹲街弑〆低调 提交于 2019-12-24 22:34:28
问题 I want to print a list while keeping its elements vertically aligned. Currently my code prints the list [[0,1,2,3], [4,5,6,7], [8,9,10,11], [12,13,14,15]] as 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Instead, I would like to print 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 How can I achieve such a result without import anything? This is the code I've written so far: for i in BoardSize: print(*i, end="\n") 回答1: Maybe the package tabulate suits your needs. Source: https://github.com/astanin/python

declare activesheet to array for printing 2 sheets of workbook

依然范特西╮ 提交于 2019-12-24 22:25:21
问题 I am trying to print the active worksheet and another worksheet with general information (in the same workbook) at the same time. (Recto verso, which my printer does automatically, no code needed for that) In my workbook I have multiple sheets that use the same code for printing. Now I would like to add the sheet with general information called "Huurvoorwaarden" to an array so it is printed automaticaly and at the back side of the active sheet. I have tried multiple sollutions like dim / set