powered by simpleCommunicator - 2.0.51     © 2025 Programmizd 02
Форумы / Отчетные системы [игнор отключен] [закрыт для гостей] / Crystal Reports. Печать отчета без диалога печати.
2 сообщений из 2, страница 1 из 1
Crystal Reports. Печать отчета без диалога печати.
    #33640945
k1ng
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Как можно отправить отчет Crystal Reports на печать, так чтобы при этом не возникал диалог принтера?
...
Рейтинг: 0 / 0
Crystal Reports. Печать отчета без диалога печати.
    #33641032
FantomGood
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
из примеров на C#
			//Use error handling in case an error occurs
			try
			{
				//Set the printer name to print the report to.  By default the sample
				//report does not have a defult printer specified.  This will tell the
				//engine to use the specified printer to print the report.  Print out 
				//a test page (from Printer properties) to get the correct value.
				System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
				crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;


				//Start the printing process.  Provide details of the print job
				//using the arguments.
				crReportDocument.PrintToPrinter( 1 , true,  1 ,  1 );

				//Let the user know that the print job is completed
				MessageBox.Show("Report finished printing!");
			}
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Отчетные системы [игнор отключен] [закрыт для гостей] / Crystal Reports. Печать отчета без диалога печати.
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]