Zoznam druhov papierov tlačiarne

2,689 zobrazení 31.05.2002 o 00:00 pridal igo

Zoznam druhov papierov tlačiarne. Pokračovanie článku »

Pridaj komentár ako prvý »

Zoznam zásobníkov tlačiarne

2,595 zobrazení 29.05.2002 o 00:00 pridal igo

Zoznam zásobníkov tlačiarne. Pokračovanie článku »

Pridaj komentár ako prvý »

Zmena veľkosti papiera a zásobníka

2,634 zobrazení 18.02.2002 o 00:00 pridal igo

Zmena veľkosti papiera a použitého zásobníka. Pokračovanie článku »

Pridaj komentár ako prvý »

Posielanie surových dát do tlačiarne

2,800 zobrazení 12.02.2002 o 00:00 pridal igo

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č

2,554 zobrazení 17.01.2002 o 00:00 pridal igo

Písma pre tlač. Pokračovanie článku »

Pridaj komentár ako prvý »

Ovládač a port tlačiarne

2,881 zobrazení 13.01.2002 o 00:00 pridal igo

Driver a port tlačiarne. Pokračovanie článku »

Pridaj komentár ako prvý »

Veľkosť okraju tlačenej strany

2,720 zobrazení 7.01.2002 o 00:00 pridal igo

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ý »

Tlačenie obrázkov spoľahlivo

2,680 zobrazení 30.12.2001 o 00:00 pridal igo

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

2,400 zobrazení 13.12.2001 o 00:00 pridal igo

Tlač na viacerých tlačiarňach naraz. Pokračovanie článku »

Pridaj komentár ako prvý »

Zmena farebného módu tlačiarne

2,786 zobrazení 15.10.2001 o 00:00 pridal igo

Zmena farebného módu tlačiarne. Pokračovanie článku »

Pridaj komentár ako prvý »