How can be copied the data showed in an frx report on screen? - export

I have a exe based on VFP9, and I'm looking to copy the data that appears on the screen when a large report (200+ pages) is generated, since the option to save it has been disabled. (when you hit ctrl+F3).
I would like to export the data to a txt, csv or xls file.
I don't have the project files, only the exe and some dlls.
There is a folder called reports that I'm guessing should contain the report files, but it is empty.
Can this be done from within the VFP9 IDE?

Related

Associate a PDF file with a database record

The project I’m working on requires a scanned file to be associated with a record in the database. The association is required so that scanned documents can be attached to an invoice when it is sent out by email. To meet this requirement, I have created a small QR code that is printed on a sticky label. The QR code contains the ID of the associated database record. I have asked the admin staff to stick a QR code label on each paper document that they scan. The scans are saved as JPG files.
I then have a cron job that runs every few minutes which looks at any JPG files in the scan folder and if it finds a QR code the file is renamed with the ID of the job. E.g. file1.jpg becomes DB-12345-file1.jpg where 12345 is the id of the database record. The file is then moved to a different folder.
The cron job runs the following command on each file it finds
zbarimg -Sdisable -Sqrcode.enable –raw
zbarimg is software that can locate QR codes embedded in JPG files.
This is all being tested at the moment and seems to work most of the time however the company now wants to scan the files in PDF format. This does not work with the zbarimg software. I have tried converting PDF to JPG but the quality of the QR Code is lost and zbarimg fails most of the time.
Is there another automated way of linking scanned PDF files to a database record?
I have already written some code using pdf2text and saving the data into the database but this does not provide an indexed association between the PDF files and the records. It just provides a nice way to search for text in a PDF file.

Drupal 7 export Excel cannot open the file

Using Drupal 7, I do an excel export of a webform report.
When I try to open the excel file, I get an error: "Excel cannot open the file myfile.xlsx because the file format of file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file."
I open the file in an editor and I see an xml file which specifies the row data fine.
Can someone explain to me why Drupal is building excel files as xml as you can see in:
modules/contrib/webform/includes/exporters/webform_exporter_excel_xlsx.inc
and what's causing it not to load in excel?
MS Office docs are just zip files containing xml docs and resources like images. You can change the extension of an xlsx (or docx) file and open it to see what is inside. I'm assuming a simple xml file could define a simple Excel file.
I've had issues in the past opening xlsx files from Drupal modules (and other systems) and I found that I could almost always open them in LibreOffice. I don't know enough about the format of an Excel file to determine the reason, it just became my workaround.
This issue is related to overwriting existing temp zip files. You can update the webform module to the latest version or fix this single bug.

Zip file format for uploading pre-annotated data in Watson Knowledge Studio

I am trying to figure out how to include a pre-annotated model in Watson Knowledge Studio. I have followed the information found here but it doesn't seem to generalize. As a start I have tried exporting an annotated set from Knowledge Studio to re-upload (using the "Import corpus documents and include ground truth" option). If I re-upload the exported zip as-is this works but if I unzip the folder and then recompress it I get the following error:
A file could not be imported: The imported ZIP file is not in the expected format. Check whether the file was exported from another project. The type system from the same project must be imported first. (You selected 'Import corpus documents and include ground truth').
I have tried using the zip command in Linux (both with and without the -k flag which tries to force to MS-DOS style naming) and also used the compress utility in Windows but I get the same error each time. This is without making any changes to the contents of the folder.
Any help would be greatly appreciated!
Would you please check internal structure of your created ZIP with comparing the original ZIP ? Sometime I got the similar trouble report and found that their created ZIP contains root folder in ZIP structure. WKS expects the same folder structure in the ZIP file.

How can I copy all of the URLs that appear in the Network tab in Firefox in the Developer Toolbar?

I have bought a template that comes with hundreds if not thousands of files (Javascript, images, plugins, etc.). I have now chosen one of the homepages (out of many) that I want to use. Rather than copying thousands of files, I'd like to JUST copy those that I am really using. So I have copied the HTML file to a new folder, and opened it in Firefox. In the Network tab of the Developer Toolbar I can easily see which files are missing (404 response). There are 60 files.
Now, in order to make my life easy I'd like to write a simply command line script that copies those files from the original template folder to my new folder. To do that, I need the URLs for each site. But it means I'd have to right click on each file and go to COPY URL. That is getting very boring. How can I somehow select them all and get all the URLs?

Winforms - Open external pdf file

I've Googled and searched stackoverflow for this but I've not found an answer that is suitable.
All I want to do is place a button a form, the code behind this button will contain a reference to a location on a harddrive where a pdf file is stored. All I want to do is have it so that when the user clicks the button the pdf file opens in the machines selected pdf reader (this is an internal application so the 2-3 machines that access it will always have adobe acrobat on them).
I've no idea which (if any) of the built in .NET classes can do this.
EDIT: There will be 100's of pdfs all added throughout time, I will have a path reference to one pdf per order in my system which points to a file storage server where the PDF lies. The PDF is not locally hosted.
How can this be done in the simplest sense?
You can simply use this code
System.Diagnostics.Process.Start(#"c:\myPdf.pdf");
It will open the file you provide with its associated default program

Resources