Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.10.03;
Скачать: [xml.tar.bz2];

Вниз

Быстрый отчёт   Найти похожие ветки 

 
Link   (2002-09-19 18:58) [0]

Подскажите, пожалуйста, что нужно сделать, чтобы в QRPreview появлялся отчёт?


 
Link   (2002-09-19 20:10) [1]

Неужели никто никогда не работал с QRPreview?
Ну хоть кто-нибудь, скажите что слышали по этому поводу!!!!!!


 
Fishka   (2002-09-20 09:45) [2]

QuickRep1.DataSet:=Table1;
Table1.Open;
Что-то типа этого есть?


 
Lord Warlock   (2002-09-20 09:51) [3]


Link (19.09.02 18:58)


Нужен именно TQrPreview или просто отчет проглядеть?


 
Рыжик   (2002-09-20 10:32) [4]

TQRPreview example

This example creates a report preview that zooms when the preview window is resized.

Steps:
1 Choose File|New Form. The only Form setting you need to change for this example is the AutoScroll property. Change it to False. This setting allows the runtime preview to automatically zoom when the form is resized. If you were to leave AutoScroll at True, the preview would always display at the QRPreview component’s Zoom setting (default 100 percent) when the form is resized.
2 Place components on the form in the order shown below and use the Inspector or indicated instruction to set each component’s values. Leave other values at their defaults.

Component
[from palette]
Modification
Table [DataAccess] DatabaseName property: DBDEMOSTableName property: customer.dbActive property: True
QuickRep [QReport] DataSet property: Table1OnPreview event: QuickRep1Preview. The Code editor appears. Type this into the new procedure:
QRPreview1.QRPrinter := TQRPrinter(Sender);Return to the form.Right-click the report and choose Send To Back from the popup menu.Double-click the placed report to open the Report Settings dialog. Check the Detail band checkbox, then click OK to create a detail band on the report.
QRDBText [QReport] Place this component on the report’s detail band.DataSet property: Table1DataField property: CompanyAlignToBand property: True
Toolbar [Win32] No property changes.
Button [Standard] Place this component on the toolbar.Caption property: &PreviewDouble-click the button to open the Code editor window, and enter this for the Button1Click procedure:
QuickRep1.Preview;
QRPreview [QReport] Place the component anywhere on the form below the toolbar.Align property: alClient
3 Press F9 to run the program. Press the Preview button to load the preview. Note the zoom change as you resize the form.


 
Link   (2002-09-20 17:57) [5]

Сделал как написано, но на это:
QRPreview1.QRPrinter := TQRPrinter(Sender);
пишет, что Sender - это не то...

Что делать?


 
Link   (2002-09-20 18:25) [6]

Всё-таки требуется, чтобы QRPreview работал, а как это сделать я так и не понял...



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2002.10.03;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.011 c
1-7888
Ryser
2002-09-21 15:40
2002.10.03
Кто-нибудь сталкивался с написанием моделирования системы


3-7849
Slava_BAZ
2002-09-13 07:09
2002.10.03
Отчёт из 3 таблиц?


1-7976
eSKey
2002-09-24 14:25
2002.10.03
прокрутка окна Richedit


3-7806
777
2002-09-11 17:09
2002.10.03
ctDynamic


3-7832
Старик
2002-09-12 14:57
2002.10.03
Запрос





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский