printer
23 отговора
468 прегледа
Re: Pixelperinch
Слагаш си в една формичка един TQuickReport. В него си слагаш един TitleBand и го разтягаш на целия лист. После си нареждаш вътре на желаните от теб места желаният от теб брой TQRLabel компоненти и си ги кръщаваш по желан от теб начин. Също така можеш да си нагласиш желан от теб шрифт и стил на шрифта. И тук идва ключовия момент - някой (да кажем ти) натиска бутона PRINT на някоя форма, правена от някого (да кажем от теб). Изпълняват се няколко редчета код, които в общия случай правят следното:
1. създават ти формичката с репорта.
2. попълват Caption-ите на съответните лейбълчета със съответния текст
2а. ако изгаряш от желание можеш да си промениш шрифта на някой TQRLabel...
3. Викаш Form1.QuickReport1.PreviewModal// или Print или каквото ти харесва
4. унищожаваш си формичката
по-подробно не мога да ти обясня. надявам се да си разбрал
1. създават ти формичката с репорта.
2. попълват Caption-ите на съответните лейбълчета със съответния текст
2а. ако изгаряш от желание можеш да си промениш шрифта на някой TQRLabel...
3. Викаш Form1.QuickReport1.PreviewModal// или Print или каквото ти харесва
4. унищожаваш си формичката
по-подробно не мога да ти обясня. надявам се да си разбрал
Re: Pixelperinch
Kak da vzimam informatsia za printer (printer koito e vkluchen na USB-to), kato naprimer razdelitelna sposobnost i t.n. Predpolagam ima niakakva fynktsia
Re: Pixelperinch
Разгледай хелпа за GetDeviceCaps. Виж по-специално следните стойности:
HORZSIZE - Width, in millimeters, of the physical screen.
VERTSIZE - Height, in millimeters, of the physical screen.
HORZRES - Width, in pixels, of the screen.
VERTRES - Height, in raster lines, of the screen.
LOGPIXELSX - Number of pixels per logical inch along the screen width.
LOGPIXELSY - Number of pixels per logical inch along the screen height.
BITSPIXEL - Number of adjacent color bits for each pixel.
ASPECTX - Relative width of a device pixel used for line drawing.
ASPECTY - Relative height of a device pixel used for line drawing.
ASPECTXY - Diagonal width of the device pixel used for line drawing.
PHYSICALWIDTH - For printing devices: the width of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper has a physical width value of 5100 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
PHYSICALHEIGHT - For printing devices: the height of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper has a physical height value of 6600 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
PHYSICALOFFSETX - For printing devices: the distance from the left edge of the physical page to the left edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper, that cannot print on the leftmost 0.25" of paper, has a horizontal physical offset of 150 device units.
PHYSICALOFFSETY - For printing devices: the distance from the top edge of the physical page to the top edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper, that cannot print on the topmost 0.5" of paper, has a vertical physical offset of 300 device units.
Както ти казаха колегите по-горе, това е low-level подхода и може да стане доста сложно. Ако използваш готов report няма да се грижиш за подробностите, а ще можеш да отпечатваш нещата, които ти трябват само с няколко клика на мишката. Успех!
Mixy
HORZSIZE - Width, in millimeters, of the physical screen.
VERTSIZE - Height, in millimeters, of the physical screen.
HORZRES - Width, in pixels, of the screen.
VERTRES - Height, in raster lines, of the screen.
LOGPIXELSX - Number of pixels per logical inch along the screen width.
LOGPIXELSY - Number of pixels per logical inch along the screen height.
BITSPIXEL - Number of adjacent color bits for each pixel.
ASPECTX - Relative width of a device pixel used for line drawing.
ASPECTY - Relative height of a device pixel used for line drawing.
ASPECTXY - Diagonal width of the device pixel used for line drawing.
PHYSICALWIDTH - For printing devices: the width of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper has a physical width value of 5100 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
PHYSICALHEIGHT - For printing devices: the height of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper has a physical height value of 6600 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.
PHYSICALOFFSETX - For printing devices: the distance from the left edge of the physical page to the left edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper, that cannot print on the leftmost 0.25" of paper, has a horizontal physical offset of 150 device units.
PHYSICALOFFSETY - For printing devices: the distance from the top edge of the physical page to the top edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5"x11" paper, that cannot print on the topmost 0.5" of paper, has a vertical physical offset of 300 device units.
Както ти казаха колегите по-горе, това е low-level подхода и може да стане доста сложно. Ако използваш готов report няма да се грижиш за подробностите, а ще можеш да отпечатваш нещата, които ти трябват само с няколко клика на мишката. Успех!
Mixy
Viarno e
Che e po-lesno s tozi quickreport taka e .Vchera go napravix s nego, ama mi e
merak da go napravia i inache.V kraia na kraishtata shte polzvam QR.
merak da go napravia i inache.V kraia na kraishtata shte polzvam QR.