การให้ลิขสิทธิ์

ข้อจำกัดของรุ่นประเมิน

รุ่นประเมินของ Aspose.Slides for JasperReports (โดยไม่มีการระบุใบอนุญาต) จะส่งออกทุกหน้าในรายงาน แต่จะใส่ลายน้ำการประเมินไว้ที่ศูนย์ของแต่ละสไลด์หรือหน้าในรูปแบบเอาต์พุตสี่รูปแบบ (PPT, PPTX, PDF และ HTML) ตามที่แสดงในรูปด้านล่าง ดูรายละเอียดเพิ่มเติมที่ Evaluate Aspose.Slides

ลายน้ำการประเมินที่ศูนย์ของสไลด์ที่ส่งออก

การใช้ใบอนุญาต

มีวิธีหลายอย่างในการใช้ใบอนุญาต ขึ้นอยู่กับว่าคุณทำงานบน JasperReports หรือ JasperServer

การใช้ใบอนุญาตสำหรับ JasperReports

เรียกเมธอด setLicense ของคลาส License ด้วยสตรีมที่อ่านไฟล์ใบอนุญาต เหมือนกับใน Aspose.Slides for Java:

import java.io.FileInputStream;

import com.aspose.slides.jasperreports.License;

public class ApplyLicense {
    public static void main(String[] args) {
        try {
            // สร้างอ็อบเจ็กต์สตรีมที่มีไฟล์ใบอนุญาต
            FileInputStream fstream = new FileInputStream("Aspose.Slides.JasperReports.Developer.lic");

            // สร้างอินสแตนซ์ของคลาส License
            License license = new License();

            // กำหนดค่าใบอนุญาตผ่านอ็อบเจ็กต์สตรีม
            license.setLicense(fstream);
        } catch (Exception ex) {
            System.out.println(ex.toString());
        }
    }
}

หรือส่งพาธของไฟล์ใบอนุญาตไปยังผู้ส่งออกในพารามิเตอร์ ASExporterParameters.PPT_LICENSE ในตัวอย่างนี้ jasperPrint คือรายงานที่เต็มรูปแบบ เช่นใน การส่งออกครั้งแรกของคุณ:

ASPptExporter exporter = new ASPptExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "report.ppt");
exporter.setParameter(ASExporterParameters.PPT_LICENSE, "Aspose.Slides.JasperReports.Developer.lic");
exporter.exportReport();

การใช้ใบอนุญาตบน JasperServer

ตั้งค่าคุณสมบัติ licenseFile ของ bean pptExportParameters ใน applicationContext.xml ให้เป็นพาธของไฟล์ใบอนุญาต ตามที่แสดงใน การบูรณาการกับ JasperServer.