เรียกใช้งาน rml2pdf จาก ReportLab ยังไงคะ?

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: เรียกใช้งาน rml2pdf จาก ReportLab ยังไงคะ?

Re: เรียกใช้งาน rml2pdf จาก ReportLab ยังไงคะ?

โดย nuattawoot » 30/11/2017 3:08 pm

ถ้าทำ ReportLab เอานี้ไปดู
http://blog.leanote.com/post/mynote/1af72c59b89c

Re: เรียกใช้งาน rml2pdf จาก ReportLab ยังไงคะ?

โดย Wallapa » 30/11/2017 2:51 pm

คือ ต้องใช้โค้ดข้างล่างนี้ ทำ pdf ค่ะ ถ้ามีวิธีอื่นรบกวนช่วยแนะนำด้วยนะคะ

โค้ด: เลือกทั้งหมด

from rlextra.rml2pdf import rml2pdf
a.png
a.png (21.3 KiB) Viewed 781 times

Re: เรียกใช้งาน rml2pdf จาก ReportLab ยังไงคะ?

โดย nuattawoot » 30/11/2017 2:45 pm

ต้องการทำอะไรครับ ไม่เข้าใจ

เรียกใช้งาน rml2pdf จาก ReportLab ยังไงคะ?

โดย Wallapa » 30/11/2017 2:37 pm

ดูใน ReportLab แล้วงงมากเลยค่ะ สับสนเรื่องของ path ตอนนี้โหลด rlextra เรียบร้อยแล้วค่ะ เหลือแค่เรียกใช้งานค่ะ

โค้ด: เลือกทั้งหมด

python /path/to/rlextra/rml2pdf/rml2pdf.pyc filename.rml

ข้างบน