Zoznam druhov papierov tlačiarne
2,689 zobrazení 31.05.2002 o 00:00 pridal igoZoznam druhov papierov tlačiarne. Pokračovanie článku »
Pridaj komentár ako prvý »Zoznam druhov papierov tlačiarne. Pokračovanie článku »
Pridaj komentár ako prvý »Zoznam zásobníkov tlačiarne. Pokračovanie článku »
Pridaj komentár ako prvý »Zmena veľkosti papiera a použitého zásobníka. Pokračovanie článku »
Pridaj komentár ako prvý »Pri tomto postupe si zodpovedý aj za obslúženie požiadaviek, ktoré tlačiareň môže vyžadovať. Pokračovanie článku »
Pridaj komentár ako prvý »Písma pre tlač. Pokračovanie článku »
Pridaj komentár ako prvý »Driver a port tlačiarne. Pokračovanie článku »
Pridaj komentár ako prvý »Under Win16, call the Windows API function Escape(), passing the constant GETPRINTINGOFFSET. Under Win32, simply call the Windows API function GetDeviceCaps() passing the predefined constants PHYSICALOFFSETX and PHYSICALOFFSETY. Since there is no guarantee a given escape is supported, always call Escape with the QUERYESCSUPPORT constant to make sure a given escape is implemented. The following example returns the margin of a given printer under both WIN16 and WIN32, accounting for the fact that not all printers will support the escape code GETPRINTINGOFFSET (under WIN16). If this is the case, the printing offset is approximated by getting the page size, subtracting the physical resolution of the device, and then diving by two. Pokračovanie článku »
Pridaj komentár ako prvý »Sending a bitmap based on the screen to the printer is an invalid operation that will usually fail, unless the print driver has been designed to detect this error condition and compensate for the error. This means you should use the VCL canvas methods Draw, StretchDraw,CopyRect, BrushCopy, and the like to transfer a bitmap to the printer, since the underlying bitmap is based on the screen, and is device dependent. The only way to reliably print an image is to use DIBs (Device Independent Bitmaps). Getting a valid DIB can be difficult, as there are many Windows API functions that must be used correctly. Further, many video drivers incorrectly fill in the DIB structure in regards to the color table in the DIB.
The following example demonstrates an attempt to overcome some of these problems and limitations. The example should compile successfully under all versions of Delphi/C++ Builder.
The core function in the example, BltTBitmapAsDib(), accepts a handle to a device to image to, the x and y coordinates you wish the bitmap to be imaged at, the width and height you wish the image to be (stretching and shrinking is acceptable), and the TBitmap you wish to image. Pokračovanie článku »
Pridaj komentár ako prvý »Tlač na viacerých tlačiarňach naraz. Pokračovanie článku »
Pridaj komentár ako prvý »Zmena farebného módu tlačiarne. Pokračovanie článku »
Pridaj komentár ako prvý »