I am stuck in this task from a month ago so my last option is to post my query on stack-overflow.
I have to find a PDF Creation tool where i can crate my PDF Template and also i can assign a data source like sql server or any thing else. by which the sql server dynamic data can replace the value of pdf template Tags.'
I have tried many tools like Foxit and bulzip . But any of the tool does not meets my requirement. I must say I have completely stuck in this Task.
So Please give me appropriate solution . Immediate response will be appreciated.
If you want to create pdf in client side, you can try jspdf
If you are using php for server side, you can try mpdf.
Have a look at wkhtmltopdf. It's a very simple console utility that creates PDF from HTML. So basically you need to generate HTML markup. You can use some scripting language (PHP, python, etc.) or templating engine, depending on what exactly you want and what tools you are familiar with.
Create HTML/CSS markup for your template.
Define places where you want to put dynamic data, mark it
somehow.
Create script that will query database for your data and then
Either use search&replace in your script to place real data, or
copy whole HTML as a template using some templating engine (for
instance, PHP is itself a template engine, so you can basically
place save template as PHP file where real data is placed where
needed).
Related
I have a situation in which I have a blob file whose type is .PDF and I need to count the pages in the PDF. Is there a way to do it without any external (3rd party) libraries? I know that there is PL/PDF tool but I need to do it only in PL/SQL. I am using Oracle 11g version, and the files is sitting in the table.
Any help will be appreciated, thanks.
I think you can go with Java in the Oracle database.
Check how to do it with Java only here or there.
Next steps would be to :
load the required JAR libraries in the Oracle database
create a Java Source in the database with the java code in it
create a PL/SQL function that will wrap the Java class (once the source is compiled).
Use this PL/SQL function to get the number of pages in your PDF through Java.
Those are the main lines but I think it's the best way if you want to stay with open source and free software.
I want to ask the user to input a query then the BIRT will generate a report based on user's query.
So far, what I do is pass the parameter to this.queryText but I can't think of a way on how will BIRT display the results.
Is this possible?
You can achieve this by following below steps :-
Create report parameters if required, which can be passed by user.
In SQL dataset beforeOpen() event build and assign dynamic query:-
example- this.queryText = "Select * from " + params["parmtable"].value;
If you have any other requirement, could you please elaborate it. I will surely try to help you with a sample rptdesign file.
This is not directly possible.
However, with a little help from outside (e.g. getting the description of the cursor from the DB, it is possible to generate (and save, if you like) and finally run an rptdesign file by calling the DE API from Javascript. I've done this, but it is very cumbersome. Furthermore, what if the user wants to supply parameters?
From a security point of view, the whole approach is not recommended.
IMHO BIRT is not the right tool for this, because this task requires more low level programming. If you are free to choose, I'd recommend Python with the ReportLab toolkit (a library to generate PDF) together with cx_Oracle (depending on your DB) or Java with iText and JDBC.
I don't have any other option aside from this.
First. (I use java btw) My program accepts and execute the query. Then using the ResultSetMetaData, I get the column names. (to be use as reference to my data source)
Then. I passed the full query and the list of columns to the method buildReport() (Please refer to How to Build Dynamic Table (BIRT) sample code)
I designed a Flash application that takes data from an XML file and populates a datagrid and textFields.
I need to access a SQL database instead of XML.
Can you lead me in the right direction? I have seen Flash Builder access SQL, but I am not sure how to populate the datagrid in the SWF. The SWF contains a map and other graphic elements and animation.
Thanks.
Simple answer is that you create a PHP file that accesses the database and prints/echoes the MYSQL data as your XML. Using the URLLoader class you can load this php file and have the xml as the loaded data. The rest should then be the same as your existing app.
You can add get variables to the url string used in the URLLoader or you can use URLVariables to use post variables to pass values if necessary to your php script.
i just wondered if any users could advise me what to google for, as im wanting to create a pdf after a user has submitted a vbscript form.
The form contains data which goes into a MYSQL database and once the user has submitted i would like to use the data to create a PDF.
I would probably be calling this from the vbscript, so i wondered how can i create the PDF from vbscript? Would i have to make an external call to some other program/website or something? Do we need Adobe Acrobat Professional and could it be installed on our server to allow us to systematically create PDFs on the fly?
You are looking for a PDF com component.
There are many of these around - anything that works with classic ASP will work.
This is one I used int the past - AspPDF.
we also use PDFCreator which is installed on the server and works like a printer. The output is a PDF.
I need to be able to dump my user table inside Drupal to an XML document that I can hit from a path in a browser.
e.g. mysite.com/users.php
Looking for an easy way to do this, an existing module would be ideal. Not sure if QueryPath does this.
Thanks.
Using Views Bonus Pack you can first build a view of all your users, and then create a 'feed' display. In the feed settings, you'll be able to select XML as one of the formats. You can then set the path to anything you like.
QueryPath can do this.
There is a database extension that comes with QueryPath's Drupal module that basically lets you take any SQL statement and inject the results into an XML document. The basic idea is explained here:
http://technosophos.com/content/using-querypath-interact-sql-database-part-1
The Drupal module has Drupal-specific DB bindings though. (So stuff like {table} is correctly translated.)
I've also used the Views Datasource module to do this, but it's buggy. The last two times I did it, I had to edit the source code for the module first.