SIMITGROUP / phpjasperxml

This is a php wysiwyg report library
BSD 3-Clause "New" or "Revised" License
43 stars 46 forks source link

Error in pdf report (Frames objects) #68

Closed onoboaits closed 3 years ago

onoboaits commented 4 years ago

Hi, congratulations for your work, but i have this problem.

In my report when call the export in pdf, i get this error:

Fatal error: Uncaught Error: Call to undefined method PHPJasperXMLElement::element_frame() in C:\xampp\htdocs\hrmedic\reports\version\1.1\abstractPHPJasperXML.inc.php:952 Stack trace: #0 C:\xampp\htdocs\hrmedic\reports\version\1.1\PHPJasperXML.inc.php(111): abstractPHPJasperXML->default_handler(Object(SimpleXMLElement)) #1 C:\xampp\htdocs\hrmedic\reports\version\1.1\abstractPHPJasperXML.inc.php(789): PHPJasperXML->group_handler(Object(SimpleXMLElement)) #2 C:\xampp\htdocs\hrmedic\reports\version\1.1\abstractPHPJasperXML.inc.php(1340): abstractPHPJasperXML->xml_dismantle(Object(SimpleXMLElement)) #3 C:\xampp\htdocs\hrmedic\reports\version\1.1\abstractPHPJasperXML.inc.php(1346): abstractPHPJasperXML->load_xml_string('<?xml version="...') #4 C:\xampp\htdocs\hrmedic\reports\rptForm01.php(20): abstractPHPJasperXML->load_xml_file('rptform01.jrxml') #5 {main} thrown in C:\xampp\htdocs\hrmedic\reports\version\1.1\abstractPHPJasperXML.inc.php on line 952

My report xml in jasper report have some frames elements.

The report in jpg is attached. form01_page1 form01_page2 form01_page3

fauzan1505 commented 3 years ago

Hi.. I have same problem.. can you solve this problem? please tell me..

thanks,

fau

kstan79 commented 3 years ago

you shouldnt use frame or list, it is not supported https://github.com/SIMITGROUP/phpjasperxml/wiki/Limitation

usually i achieve similar result by put in html content into textfield

kstan79 commented 3 years ago

since we use tcpdf, the result of textfield can be similar like here: https://tcpdf.org/examples/example_006/

onoboaits commented 3 years ago

Hi, i fix the problem with no mount shapes, when the objects are mounted the report has distortion.

Grettings

El mié., 24 de febrero de 2021 6:45 a. m., fauzan1505 < notifications@github.com> escribió:

Hi.. I have same problem.. can you solve this problem? please tell me..

thanks,

fau

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SIMITGROUP/phpjasperxml/issues/68#issuecomment-785019440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKL3KFDQ2Q77MPNJSUHV5T3TATRDXANCNFSM4O45LWYQ .

fauzan1505 commented 3 years ago

you shouldnt use frame or list, it is not supported https://github.com/SIMITGROUP/phpjasperxml/wiki/Limitation

usually i achieve similar result by put in html content into textfield

OK, Thanks for respond.. i was changed with rectangle..