This sample program is designed to demonstrate programming functions or methods for training purposes. Schneider Electric assumes no liability for the use of this example program or any part of it.
This article will provide some guidance on how to call a method to generate and print report from a script.
Script to generate report as follows:
Set oCrystalReportsObject = Server.FindObject("Fullname of the Crystal Report")
........
oCrystalReportsObject.Interface.Generate(Parameter1, Parameter2, Parameter3, Parameter4, , , , )
Here's an example of how to generate a report.
Day1 and Day2 are two parameter arguments associated with the report (you can associate up to 8 parameters). Report1 is the Crystal Report object that generates the reports.
Script to print report as follows:
Set oCrystalReportsObject = Server.FindObject("Fullname of the Crystal Report")
........
oCrystalReportsObject.Interface.Print(Printer, Copies, CollatePages, Parameter1, Parameter2, Parameter3, Parameter4, , , , )
Here's an example of how to print a report.
Report1 is the Crystal Report object that prints the reports. In this case, the example shows that it's printing to the 'HP 5000 Printer' with one copy and no collation of pages.
Please note that the pick action uses server-side printing, so it can only print to real printers that print to paper and do no not display a user interface during the printing process. For more details regarding client and server side printing, please refer to the manual here.
Đã phát hành cho: Schneider Electric Việt Nam
Bạn cần trợ giúp?
Công cụ chọn sản phẩm
Nhanh chóng và dễ dàng tìm được sản phẩm và phụ kiện phù hợp cho các ứng dụng của bạn.
Nhận báo giá
Bắt đầu gửi yêu cầu bán hàng trực tuyến và chuyên gia sẽ liên hệ với bạn.
Nơi mua hàng?
Dễ dàng tìm nhà phân phối Schneider Electric gần bạn nhất.
Trung tâm Hỗ trợ
Tìm sự hỗ trợ cho mọi nhu cầu của bạn tại một nơi.