Is there any way I can interrogate a printer and find the maximum page width that it can take (as seen in printer preferences).
I have an app that is printing images, and sometimes the image I produce is wider than the printer can handle. So I need to know the selected printers maximum page width.
Using the printable area of a page doesn't help me. I need to know the maximum width of page for a printer.
Cheers
Related
We are printing labels to printer directly. The printer is Zebra.
We are using templates to define fields. Here is line which i want to change font size a bit more bigger
^FT465,819^A0N,56,55^FH\^FD<Address>^FS
You can see that its Address field. I want to change font to be bit bigger but i have no clue what this code. I read a bit and its ZPL code but dont know how i change font size for that field. Has anyone experience with zebra printing. I am printing programatically through c#
Try using something like this:
^XA
^FO485,945^CF0,60^FD<Address>^FS
^FO485,900^CF0,40^FD<Address>^FS
^XZ
You can see I change font size from 60 pixels to 40 pixels.
I have a windows application which is responsible for printing customized barcode labels roll based on user's needs like specifying the texts, dimensions and size.
The user will use Zepra and TSC barcode printers, I just need to know how to let the user choose determine the size of label and the space between labels and also the all margins (top, right, bottom and left).
I need a code-snippet does that in C# and the final result to be like this.
So, any ideas?
For Zebra part:
Here is an example how to send ZPL commands into printer:
https://km.zebra.com/kb/index?page=content&id=SA301&cat=ZISV_PL_ZPL&actp=LIST
Here you can find pdf document from ZPL commands which are send to printer. Build a suitable set of codes which will produce the label and barcode that you need:
https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2-pm-en.pdf
Happy Coding!
I have one long report which contains 8 tablix. Now when the report needs another page for the records, it is clipping the records. I have set the page size to A4.
The first few records are clipped when printing. How to prevent this behaviour. I am new to RDLC.
You need to set top/bottom/left/right margins according to your printer.
I usually use this settings and never had problems (Report > Report properties > Page setup):
left/right margin: 1,3cm
bottom/top margins: 1,5cm
This is not connected to your problem but remember you need to set maximum report width according to these margins.
I am generating PDF document using iTextSharp (winforms), now i need to print this generated PDF document using a Label Printer.
I have multiple Printers installed on my machine, so with VB.net I need to Select a certain Thermal printer.
Once the Printer is Selected I need to Specify Shipping Label Size (width & height).
So Once Label Printer is selected and I specified custom Label dimensions, I would like the label to be printed without any user action (Like skip the Confitm box to print).
I dont need the full code, I just need someone to put me into right direction.
Thanks
You can use the PrintDocument object. Use the Print method, and do the actual printing in the PrintPage handler. To do this, you can output to the graphics object of the parameter PrintPageEventArgs in your PrintPage handler.
I'm writing an application to send some images to a third party, and the images must be 200x200 DPI. The image is a Bitmap and is sized at 500 width and 250 height.
The first time I tested the images with the third party, my resolution was incorrect. I merely used image.SetResolution(200,200) to correctly set it to 200x200. This, however, only changed the resolution tag for the image and did not properly, according to my third party technical contact, adjust the image height and width.
Is there a ratio that I can use so that for each X units I increment the resolution, I merely increment the corresponding height or width Y units? I thought that I could just increment resolution without having to increment height or width.
Thank you,
Aaron.
An image stored digitally has no meaningful concept of DPI. DPI comes into play when reproducing an image on a physical device.
You need to adjust the image size with regard to the DPI of the physical device, and the desired size of the output on that device.
For example, if a printer tells you they need an image at 300dpi to fill a space of 4in x 4in then you would provide them a bitmap with a size of 1200x1200 pixels. This image would end up with a physical size of 4in x 4in on a 300dpi output device. On a 600dpi device the same image would have an output size of 2in x 2in.
When dealing with digital images, you usually refer to PPI, which is pixels per inch. DPI is not directly related to digital image resolution.
So, if you look at a image that is 200px by 200px # 200PPI, you will have an image that is 1 inch by 1 inch.