From my Access DB, I need to build up a document that will be automatically generated on the closure of a certain form.
The document will contain the data of the table as each simple report. But the document must contain other things:
First Page with some text and images
Table of Content
A couple of paragraph of fixed text
In the table, there are also some attachments that are Visio flows. It would be great also to have them in the document, for example as an image at the end of each record.
To do this, is it more suitable build up a Report or Export the data to Word? What do the best practices advise?
You can use an OLE object to display files within your Access Report.
You can get fairly flexible with an Access report but Word will have more options for formatting etc
Related
I am using Data driven subscription to send report in Email body and as an excel attachment.
In email,I am seeing the report as Body,but report as excel attachment is missing.
The requirement is I need report to be send as an attachment and in Body in one email.How can I achieve this using Data driven subscription.
I have created table with two rows and format like 'excel' and 'mhtml' and referring the column 'REPORTFORMAT' to Render format.
Please let me know how can i send both in one email
You cannot do it automatically - Include Report determines whether the report is included as either an embedded report or attachment but cannot do both.
Include Report: Select this option to embed or attach a copy of the report. The format of the report is determined by the rendering format you select.
MS Docs: Create Subscription
You current process with two rows should be creating two reports - one with an attachment and one with it embedded.
You could add the data in the report body in the Comment field but the data would need to be converted in to an HTML table.
You need to use the string "EXCELOPENXML" as the rendering format, then it will work. It used to work with the string "Excel" only but now it no longer works like that. With Word you also need to use the string "WORDOPENXML". You will then get the reports as attachment files, as per your requirement.
Charles
Blocked out the data for personal reasons.
Essentially I am passing images from a MongoDB to NodeRed and parsing the actual image file back to base64 to create a set of up to 100 images (records) and the "alarm" description. The table is done in HTML template with input coming from Mongo Query.
With 3 pieces of information that is "linked" together (Time, Alarm, Image) the information separately does no good.
What I'm trying to determine if there is a good way to download the full table (images included) in a logical way.
Methods tried:
Excel download - Formatted properly, rows/columns exist but images are not saved properly because they technically aren't being stored in the table, just referencing from the MongoDB Query.
Canvas->Table inside Canvas: this one has yielded little success. Idea: Make a canvas and have the table inside (yielding an image that could be saved, removing search-ability but easy to view). Either I don't fully understand how HTML canvas drawing works or Node-Red handles some things differently. I got a blank canvas when linking table to canvas by object ID of table.
SelectAll/Copy/Paste: This one works, pasting into a doc has everything formatted in table, but not automated/scripted.
Looking for a way to "triggered"/on button press to save the current table contents and save them. CtrlP/print to PDF and such work fine. Looking specifically to save the Table or an object similar in nature.
I cannot post/link the flow because of data/security reasons.
If there is a better option for managing data that needs to be in a format with 3 columns and 100 rows I am also open to changing the HTML. I am not an expect in best practices for frontend, this is only going to be used for creating a report.
My question is whether or not anybody knows of a better way to do what I'm already doing. I'm creating a report as a list, and trying to render it both in HTML and Excel.
I'm developing a shiny app that generates reports for Qualtrics surveys.
The results table is a list of HTML strings that I paste together and display in a shinydashboard. Here's a dput of the example results tables.
Here's how I'm creating the html results tables list -- the html_tabelize() function in my package. Here's a dput of the example input.
In the shiny server.R file the way I create the Excel file is with the following code:
output$downloadResults <- downloadHandler(
filename = 'tables.xls',
content = function(file) {
write(html_tabelize(main()[['blocks']]), file)
}
)
To summarize: I get the blocks, I run html_tabelize on them, and then I write the HTML output to a file called "tables.xls". When I open that file, because Excel can render HTML, it renders something like this:
My concern and problem with what I'm doing are two-fold:
If I were writing an Excel document instead of simply rendering HTML in Excel, then I could perhaps get a better formatted document. I'd like that.
When you download the results tables xls file and try to open it, you get a warning from Excel. I don't want the users of my app to see this warning, because it's distracting and could worry them about something that isn't really a concern.
I know that options exist for writing Excel files in R, but so far what I've seen indicates that their input must be either a data frame, or a list of data frames. The list I am rendering from has different types of components, like the question text, as well as data frames of results. Originally I was using pandoc, but pandoc, even when run from R, is a system binary, and it's difficult to list as a dependency (and if I can't list it as a dependency, it's tough to make sure it's installed for the users of my app). Additionally, I found out pandoc doesn't even convert to "real" Excel -- it also just saves HTML in a .xls file. Does anybody have any suggestions as to how I can improve this part of my app?
I understand it is possible to export the report data into multiple file types using the export button. however i'm wanting to access the information without having to manually export. So my question is, is it possible using a batch file or powershell to read a text box on the report and output it say into a notepad file or spreadsheet. or if not maybe just a way to export all of the data on the report without having to manually do it? Screenshot attached for an example.
One option is to create a subscription for the report and either have an attachment emailed to you or have it saved to a network location. In either case, there are several export options (csv, excel, xml, etc.). If you're only wanting partial data from the report, I'd recommend creating a sql query or just create a new report that gets you exactly what you need.
I have pdf form, Which need to fill by mysql data. Is it possible?. Can some one share some examples?. Html forms and convert then to pdf forms are useless for this purpose because i must need pdf form should be filled.
Thanks In Advance.
There are several ways to do it. Which one will be the most appropriate one depends on the actual workflow, the tools available, how often this has to happen etc.
Among the possibilities, we have:
• exporting an FDF from the database: FDF is the Forms Data Format which is native PDF, and is described in the PDF description (as well as ISO 32000). FDF is a structured text file, which means that it is possible to assemble it in MySQL. This FDF will then be imported into the blank PDF form.
• the same as above, but using XFDF, which is an XML representation of FDF.
• exporting a tab-delimited file from the database, and importing it into the form as a file attachment. According logic in the form reads in the tab-delimited data and fills it into the according fields.
• connecting to the database using SOAP. Appropriate logic in the form will take the data and distribute it accordingly to the fields.
• (for bigger volumes) create FDFs as above, but then use a server-side form filling application, such as FDFMerge by Appligent.
As said, the approach to be used depends on the project and its circumstances.