when i print a crystal report on two printers - it appears different.
On printer one , the bottom margin is rather small, consistently - close to 3/16ths - as it needs to be.
On printer two, the bottom margin is larger, closer to 5/16ths. How can I get these printers to have the same small margin
One printer is a HP LaserJet P3015 printer and the other is a HP LaserJet P4015 printer
Related
I alternately use 2 different label type and size, I have a zd421 Zebra Printer and when changing the labels it execute the media calibration automaticly to the rigth size of label, but it prints 3-5 blank label each time we change paper, is there any possibility to disable printing extra blank label during calibration? is it possible to disable the media calibration? I apreciate you could help me.
If your printer has a display, you can change this in the tools ("power up action" and "head close action") menu otherwise you can use the ^MF ZPL command.
Have a look here to see how you can set the automatic action when you close the printer lid and when you power on the printer and here you can see how to send the commands to the printer.
But in few words, if you want to disable the calibration at all, you've to send the following commands
^XA
^MFN,N
~JUS
^XZ
I'm printing some pdf's using Ghostscript.NET
this is my config.
List<string> switches = new List<string>
{
"-empty",
"-dPrinted",
"-dFirstPage=1",
"-dLastPage=1",
"-dPrinted",
"-dBATCH",
"-dNOPAUSE",
"-dNOSAFER",
"-dNumCopies=1",
"-sDEVICE=mswinpr2",
#"-sFONTPATH=" + System.Environment.GetFolderPath(System.Environment.SpecialFolder.Fonts),
"-sOutputFile=%printer%" + printQueue.FullName,
"-f",
inputFile
};
It works pretty well but my paper size is a custom paper 6.5in x 8.5in, my problem is when I print silent to my ricoh printer, try to print in letter.
How can i do to set my paper size in my switches or force the printer to render it properly.
If i print manually must select the paper and bin manually and all print's perfect.
The mswinpr2 device uses Windows to do the printing, in particular the media size is set by the printer canvas.
So the answer is to set the default media selection of your printer to the required media size before you start printing.
You can set the paper size with "-sPAPERSIZE=a4" you can see Paper sizes known to Ghostscript.
or you can set it by height and width
"-dDEVICEWIDTHPOINTS=w"
"-dDEVICEHEIGHTPOINTS=h"
Where w be the desired paper width and h be the desired paper height in points (units of 1/72 of an inch).
I am trying to allow the user to select an appropriate paper size for their printer within my own print settings dialog. Does anyone know a workable solution - preferably cross platform but otherwise OSX.
If I use a TPageSetupDialog then when executed it produces an error in the PASever window of Invalidpmobject although the dialog shows but doesn't seem to affect the current printers paper size. There doesn't seem to be any proerties to see what the user selected either.
I need to set the paper size without actually printing as the user needs to be able to adjust things with the new paper size first.
I finally figured out the problem so here is the solution for anyone else with the problem:
Use TPageSetupDialog but you must set valid pagewidth and pageheight values for the current printer before calling it - otherwise you get an error reported in PAServer window and the printer selection box will be set to "any printer" instead of the current printer name.
Unfortunately you cannot derive the paper size directly from the printer pagewidth and resolution because it reports printable area not paper size. So I set a default of A4 whenever the user chooses another printer. I guess you could set the nearest standard paper size to the calculated value from printer.pagewidth/printer.activeprinter.activedpi.x if you want to take care of printers that do not support A4.
The other point to note is that the default page sizes in the TPageSetupDialog component are wrong. Set the units to mm and use width 210000 and height 297000 (note 10 times bigger than the default values) for A4 size that most printers should support.
We have a very old program that we print from where you are unable to change the left print margin in the program. I need to get it printing further from the left edge, ideally about 1 inch for binding. No issue with text going over the right edge as it doesn't get near that side of the page.
My idea was to use a custom separator page https://support.microsoft.com/en-us/kb/131714 to issue a PCL command to increase the left margin.
We are using HP printers and I have tried using the standard windows example C:\Windows\System32\pcl.sep which works exactly as expected.
This is my attempt at a .sep file (am saving in the system32 folder)
\
\H1B\L%-12345X
\H1B\LE
\H1B\L&l4000U
\H1B\L&a+3000H
\
I've tried a couple of variations, but it does absolutely nothing, my document just prints like normal.
Any help much appreciated.
My guess is that the application is explicitly setting the margins,
thus undoing anything you are trying in the .sep file. I am not familiar with the .sep file at all.
In the PCL context, if you are printing in duplex you want the extra binding on the left for the front side and on the right for the backside. The PCL command to end up with a 1 inch binding margin would be something like &l540U The 540U shifts the image 3/4 inch which when added to the existing minimum 1/4 inch margin gives you a 1 inch total.
Can you direct your output to a file to see what is actually being sent to the printer?
I am using Crystal Reports inside Visual Studio 2005. I have created a report that is Legal Size, landscape. When I print out the report, the margins are at least an inch and the report prints all of the columns on two separate pages. I am printing directly out of Visual Studio. The printer is Xerox WorkCentre 5225 PS (in case that's the issue).
I have changed the preferences to be Legal, the Layout to be Landscape and the image options to have no margins. Still, the report prints incorrectly.
Also, under Page Setup, I've set all margins to 0.
Does anyone have any ideas? I've search Google and this site and I cannot seem to find an answer.
I think you need to set the margins to 1 inch (2.54cm); instead of 0 and then use all of the available "white space" space on the report.
In my experience; all the "white space" on the crystal report will be printed; and is centered on the printed sheet. Setting the margins reduces the available space but will ensure you have the correct space around your report.