how to create pdf report in web2py? i saw video on vimeo but this plugin not found..
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def show_pdf_invoice(invoice_number, invoice):
from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.set_font('Arial', 'B', 10)
pdf.cell(25, 5, 'My company name', )
pdf.set_font('Arial', '', 10)
pdf.cell(60, 5, 'My company address', ln=1)
pdf.cell(40, 5, 'My company additional data', ln=1)
pdf.line(10, 20, 180, 20)
pdf.set_xy(140, 25)
pdf.cell(25, 5, 'Date issued: {0}'.format(invoice[0].date))
pdf.set_xy(140, 30)
pdf.cell(25, 5, 'Invoice Number: {0}'.format(str(invoice_number)))
pdf.line(10, 40, 180, 40)
pdf.set_xy(10, 41)
pdf.cell(30, 5, 'Description')
pdf.cell(30, 5, 'Starts')
pdf.cell(30, 5, 'End')
pdf.cell(30, 5, 'Amount')
pdf.line(10, 46, 180, 46)
pdf.set_xy(10, 47)
pdf.cell(30, 5, invoice[0].invoice_item_name)
pdf.cell(30, 5, '')
pdf.cell(30, 5, '')
pdf.cell(30, 5, '{0} {1}'.format(invoice[0].total, invoice[0].currency)
pdf.line(10, 51, 180, 51)
pdf.set_xy(150, 52)
pdf.cell(30, 5, 'Total: {0} {1}'.format(invoice[0].total, invoice[0].currency)
pdf.set_xy(10, 60)
pdf.cell(30, 5, 'Bill To:', 0, 1)
pdf.cell(30, 5, invoice[0].invoice_address_name, 0, 1)
pdf.cell(30, 5, invoice[0].invoice_address_street, 0, 1)
pdf.cell(30, 5, invoice[0].invoice_address_city)
pdf.cell(30, 5, invoice[0].invoice_address_zip, 0, 1)
pdf.cell(30, 5, invoice[0].invoice_address_country)
pdf.output('invoice.pdf', 'F')
response.headers['Content-Type'] = 'application/pdf'
return XML(pdf.output('', 'S')) please suggest me what to do further???/
this error show again
according to this video i have already done shown in this video after adding appreport plugins i,m getting error:<type 'exceptions.ImportError'> Cannot import module 'applications.report.modules.modules'
please suggest me what to do further???/
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
$("#reportbro").reportBro({ localStorageReportKey: 'myReportKey'});function saveReport() { var report = $('#reportbro').reportBro('getReport');
$.ajax('<your save controller url>', { data: JSON.stringify(report), type: "PUT", contentType: "application/json", success: function(data) { ... }, error: function(jqXHR, textStatus, errorThrown) { ... } });} $(document).ready(function() { $('#reportbro').reportBro({ saveCallback: saveReport });});To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

Not that easy :)i´m reading your links and also this linkwhere i´m stuck in the save partwhat url do i put in the save url ?
Some questions ...1 - i see that you have already a report_request table with the reports.Are you talking about this table to save reports? Looks to me that this table is to save the "templates" of the pdf reports
2 - How do i merge data from my db with your templates and generate a live pdf with live data? so users can save it in their desktop ?
regardsAntónio
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.