GroupDocs.Annotation for Java ทำให้การทำเครื่องหมายสเปรดชีต Excel ง่ายขึ้น:
- เปิดไฟล์ Excel ด้วยอินสแตนซ์ของ Annotator.
- สร้างและกำหนดค่าการทำเครื่องหมายที่คุณต้องการ.
- เพิ่มการทำเครื่องหมายลงในสเปรดชีต.
- บันทึกไฟล์ Excel ที่ทำเครื่องหมายแล้ว.
GroupDocs.Annotation for Java ทำให้การทำเครื่องหมายสเปรดชีต Excel ง่ายขึ้น:
// ทำเครื่องหมายสเปรดชีต Excel
// เปิดสเปรดชีตด้วยอินสแตนซ์ของ Annotator
Annotator annotator = new Annotator("input.xlsx");
try {
// สร้างการทำเครื่องหมายพื้นที่
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 200, 80));
area.setBackgroundColor(65535);
area.setPageNumber(0);
area.setMessage("Important");
// เพิ่มการทำเครื่องหมาย
annotator.add(area);
// บันทึกสเปรดชีตที่ทำเครื่องหมายแล้ว
annotator.save("annotated.xlsx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
เพิ่มทุกประเภทของการทำเครื่องหมายในสเปรดชีต Excel และจัดการด้วย API ที่เรียบง่าย.

ไฮไลท์, ขีดเส้นใต้, ขีดฆ่า, หรือแทนที่ข้อความในไฟล์ Excel.
วาดรูปร่างและติดลายน้ำหรือรูปภาพลงบนแผ่นงาน Excel.
ดึง, ลบ, นำเข้า, และส่งออกการทำเครื่องหมาย Excel.
// เปิดสเปรดชีตที่มีการทำหมายเหตุ
Annotator annotator = new Annotator("annotated.xlsx");
try {
// ดึงหมายเหตุทั้งหมด
List<AnnotationBase> annotations = annotator.get();
// ตรวจสอบแต่ละหมายเหตุ
for (AnnotationBase annotation : annotations) {
System.out.println(annotation.getMessage());
}
// บันทึกสเปรดชีต
annotator.save("output.xlsx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
ดาวน์โหลด GroupDocs.Annotation ฟรีหรือรับสิทธิ์การใช้งานแบบทดลองใช้เพื่อการเข้าถึงแบบเต็ม!
สำรวจเอกสารตัวอย่างรหัสและการสนับสนุนชุมชนเพื่อปรับปรุงประสบการณ์ของคุณ
GroupDocs.Annotation for Java รองรับการทำหมายเหตุในเอกสารหลายรูปแบบไฟล์:

