Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in pdf report (Frames objects) #68

Closed
onoboaits opened this issue Jul 16, 2020 · 5 comments
Closed

Error in pdf report (Frames objects) #68

onoboaits opened this issue Jul 16, 2020 · 5 comments

Comments

@onoboaits
Copy link

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
Copy link

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

thanks,

fau

@kstan79
Copy link
Contributor

kstan79 commented Feb 24, 2021

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
Copy link
Contributor

kstan79 commented Feb 24, 2021

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

@onoboaits
Copy link
Author

onoboaits commented Feb 25, 2021 via email

@fauzan1505
Copy link

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..

@kstan79 kstan79 closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants