Populate SWF with SQL data - sql

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.

Related

How to create pdf Template with the dynamic values

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

what format is most reliable for saving a history file from an application?

Good Afternoon,
I am in the process of developing in vb.net a simple “cheque printing” application which will allow users to fill in a few text boxes with the values that will be printed on a cheque.
When they hit the print button, the values will be sent to the printer, but I also want the values they input in the text boxes saved to a file, so like a history file of all the cheques that were created.
I am thinking to use either an access database or an excel spreadsheet as my history file, but I am not quite sure on which would be best.
Please note that in my environment storing this information in a SQL database is not an option and also this file will most likely be stored/accessed from the network.
The history file needs to be:
1.Stable (cannot corrupt easy)
2.Reliable
3.Easily exportable in case we need to export the information to one of our in-house systems.
4.editable from the application I am developing
Kindly advise,
A
XML. Save the data to DataTable object and then use the .WriteXML method to save it as an xml file. I'd advise creating a strongly-typed DataTable class for this, so that the XML can be exported with a reliable schema and imported easily.
If you are using different fonts, you could use a .rtf (rich text format) which will save the format of the text that you send to print... it is a universal file format, you can open it with open office, ms office, or any office suite you have...
Access will be best choice,
it's relational database and can make a form from this file to do what are you looking for without VB or any code.
Also you can access this file from network.
for more detail about setting for this file go to this link
http://goo.gl/bOfGp6
and you will find more options complete your work.
I would use a MySQL server. It's free.
XML is also good, but I hate sharing folders...

saving data from an online table/CSV to sql database

I am looking into creating an sql database that extracts data from a web page. The webpage displays the data in either a table or CSV list.
The address of the page is
Online table/CSV
I am not entirely sure how to do this. I thought maybe to save the page as a text file then import it but I cannot save it. Am I missing something is there an easy way of doing this?
Apologies I should say that I will use the data in a asp.net application using VB in Visual Studio 2010. The SQL will will be SQL Server 2012.
EDIT - ok so I was informed to run the page in compatibility mode and the CSV will save which I have confirmed. I therefore need to be able to open the page using a vb console app and perform a save as. I have tried using the webclient control and I can create a file but it downloads the html of the page as well. How do I save the contents of the webpage as a csv or text file?

Sql Query to XML document inside Drupal

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.

Method to generate pdf from access+vb6 or just sql 2005?

The setup:
Multiple computers using an adp file to access a sql 2005 database. Most don't have a pdf distiller. An access form (plain form, not crystal) is created that needs to be saved as a pdf.
The only way I can think of is send a request from access to the sql server for a web page. Something like:
"http://sqlserver/generatepdf.php?id=123"
I'm trying to avoid the web page 'middle man'. Is there a way to generate the pdf in T-SQL? Anyone have any other ideas. I'm not looking for code, just methdology ideas.
Thank you
Save the form as a report, then use Access MVP Stephen Lebans free A2000ReportToPDF utility to convert it to a pdf file.
http://www.lebans.com/reporttopdf.htm
If they have Access 2007 they can download and install the free Microsoft Office 2007 Add-in to save documents as PDF or XPS.
http://www.microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en
Microsoft's ReportViewer client can generate pdfs natively.
It works inside of web pages and windows forms/wpf apps. You can programmatically trigger the export as well. The only downside is that you'll need to basically redo your form as a report.
I must admit that I did not get it: you want to export an Access form and its data into a PDF file? Your form is basically graphics, not text, nor report. Do you mean that you want this form to be included as (for example) a .png file inside a PDF file or do you want it to be a full PDF file inheriting objects from the original form and allowing things such as text search and so on?