JasperReports embed into Web Page - php

Is there any way such that I can embed JasprerReports onto my web application so that I can work online from anywhere.
By embed I mean to use the s/w in the same manner as I used it like a desktop application.
I found a PHP client but I can't get what it does.
http://community.jaspersoft.com/project/php-client
Also are there any html to jrxml converter available commmercial, non commercial.

You can use JasperReports Server which is a stand-alone and embeddable reporting server : JasperReports Server. You can use iReports to build your reports and then upload them into the server, or build them directly from the server with an ad-hoc view.
The link you've provided does nothing more that connect with this server and use it within PHP applications.

Related

How can i invoke a paper scanner using php code?

How can I invoke a paper scanner using php code?
I have already used Dynamic Web TWAIN for scanning, but it is not free.
I need an open source code to scan.
Please help me. Thank you in advance.
PHP is a server side language and cannot interact with client side hardware. You can use a web-based TWAIN SDK to scan documents in your PHP app. Check out this article which might help: http://www.dynamsoft.com/blog/document-imaging/how-to-scan-documents-in-php
You can also use Scanner.js: https://github.com/Asprise/scannerjs.javascript-scanner-access-in-browsers-chrome-ie.scanner.js
Maybe you can try phpSANE: https://sourceforge.net/projects/phpsane/
phpSANE is a web-based frontend for SANE written in HTML/PHP so you
can scan with your web-browser. It also supports OCR.
PHP Printer library: https://github.com/mike42/escpos-php
I was in a similar position as you and found there were 0 open-source libraries.
Thus, I created a library https://github.com/spacemudd/webagent-scanner.
What you need to do:
Install Python 2.7.
Navigate to webagent-scanner's root folder and run: python setup.py py2exe
In dist/ and open app.exe. This will create a localhost web server w/ port 8087.
In your web application, ensure the user has app.exe running.
Use Javascript to make a GET request to https://localhost:8087/scan
The response of the GET request... you inject it in a form to send it to your PHP backend.

PhoneGap won't accept php scripts

I'm new to phoneGap and I just found out, It doesn't accept php scripts.
My problem is I have a php script that returns information from a database.
When I convert the .php script to a .html script(with embedded php), the information is not returned to the browser.
What can I do to fix this ?
According to the PhoneGap FAQ, you can't use PHP with it:
Q: Can you use PHP/ASP/JSF/Java/.NET with PhoneGap?
A: A PhoneGap application may only use HTML, CSS, and JavaScript.
However, you can make use of network protocols (XmlHTTPRequest, Web
Sockets, etc) to easily communicate with backend services written in
any language. This allows your PhoneGap app to remotely access
existing business processes while the device is connected to the
Internet.

Is it preferable to retrieve information directly from one site or through my web server using php?

I have an application that retrieves some info and give them to user from a certain public website. However, i am not sure whether i should let my app immediately connect to the target website or it should get the info through my web server using a simple PHP script (JSON).
Actually I am using Jsoup to get the information and I tried both and they worked perfectly ( immediate and PHP) using Jsoup. However, I have not published my app yet due to the confusion aforementioned.
Use the web service. If your client has logic to parse the HTML, it can break when the web page changes. The web service can absorb this change and make corrections, but your client cannot. Not unless you release another version of your app, and that can be a pain.

Dreamweaver's build app function in cs 5.5 breaks if there is php code?

For javascript and html files only, Dreamweaver's build app for android function seems to work great in cs 5.5. But when any php code is put in (for authentication, or for ajaxing in web service returns ) it seems that the android app just displays broken php code instead of executing it. When building the app, Dreamweaver won't even let you use a root php file in the project; it only seems to only accept html files.
Am I doing something wrong? Building apps out of web language-based files seems a lot less useful if server-side code isn't allowed.
Are there any other alternatives? Titanium studio looks really complicated, but I'm willing to read the docs if it's worth the time.
http://help.adobe.com/en_US/dreamweaver/cs/using/WSeffff8bffc80208478c8d43312e240fe0ad-8000.html
Indeed it only packages HTML, CSS and Javascript into an Android or iOS package.
I'm afraid you'll have to learn real Android development if you want something more complex.
Dreamweaver will package the files up just like you asked, however, the destination system is what runs the code. Android doesn't execute the PHP within the app. Your app has to connect with a remote server that is to handle the log in. Thinks of two separate apps, one on the phone and one on your server.
Android doesn't execute the PHP within the app. This is because PHP is a server side client and Not client side. Unless they create some inbuit servers within phones from which native apps can tap into. One option you can use is to use html files and within them, create links to php files which are in online servers so as to have your scripts executed.

Sharepoint: Access SQL sharepoint files

I have the Sharepoint Intranet server on the same nework as the Internet PHP Web server. I would like to know if via PHP SQL code I can access a collection list of PDF files from the intranet so it can be viewed on the Internet site.
SharePoint exposes a Lists web service to access List Items from a SharePoint List/Document Library. You should be able to use this to grab document URLs and get that as a byte array or something, which you could serve up in your PHP application. I'm not familiar with PHP, so I don't know what kind of web service support is offered, but you could always do it client-side with AJAX.

Categories