Lazreport - how to export to excel? - export

I created a report using LazReport (freepascal). I need to get this into Excel.
I tried saving the resulting report file (.frp) but I can't seem to find any app that opens it.
Then I thought it would be good to get this into Excel. But I can't seem to find any doc or instructions on how to do this. Has anyone found a solution to this and if so please share the answer here. If I have one simple example or steps that would suffice.
Thanks!

add frCSVExport in your form and when you show report click save and choice CSV format to save

Related

Hide or encript formulas in Google Sheets

I am working with Google Sheets for a department and would like to know if there is a way for me to be the only one to see the formulas I have created in the cells.
I know I can hide them from the menu, but it can be turned back on. And I also know that anyone can download the file and see any formula.
So is there any way for anyone to see the formulas even if they download the file?
Thank you.
this is possible to achieve only if you use IMPORTRANGE. create the spreadsheet and fill it with formulae. then create another spreadsheet and import the whole sheet into it. this way you are the only one who has all the formulae so no one can steal your work.

Multiple Similar (Duplicate) Reports

I currently created a report that I would like to duplicate 40 times but with a different filter each time. So far I'm afraid this is only possible with a very manual process but I was hoping if someone has a faster solution?
Would it be possible to connect to the DataStudio API (if there is one) and run a script for this?
Also, making a design change can be problematic as it needs to be copied to 40 reports. Does anyone have a suggestion for this?
A report is stored as an RDL file in the file system. Its of XML format. Make a copy of the file in the file system and open the copy using a text editor (I prefer notepad++) and find the parameter. Change the paramater to whatever value you want it to be and save the file under a different name. I would include the parameter name in the report name. If the report as using 'Memphis' I would name the report Sales_Memphis.RDL.
Do this 40 times. Be very careful about not changing the structure of the XML file (Don't change any of the element names or opening and closing symbols(<>). Re-import the file into SSDT report project to verify it is using the correct value.
To import a file into an existing project:
Right click on “Reports” folder and select “Add” then “Existing Item”
Now file browser window will open.
Find the file and double click on it.
Ideally you can have a dropdown with all the possible values for users to choose from but I guess that is not appropriate for your needs.
If this is a good solution please check it off as valid solution.
I checked this with google support and apparently there is no way yet to do this.
There are currently no API's available to do this nor can you download something similar to an RDL file. Right now the only way is manual duplication and to make adjustments for each report separately.
Have you looked into custom bookmarking. It sounds like it might be able to address the problem you're expressing. This way you would only have one report, but the links you would share would automatically apply the correct filter value.

Binding/Auto-Updating charts in Word document with data from MS SQL Server

I've a task wherein I'm required to work with Microsoft Word document and database. Basically the word document has numerous charts that are created by users in two steps, first is to prepare charts in excel, then take screenshot and paste in Word document. It's tedious process as it requires re-doing charts anytime someone wants to do what-if simulations.
When I insert a chart in Word, the underlying data comes from Excel Sheet which I am able to fetch from database as 1 time operation, but it's not productive that much as users will have to open excel sheet, refresh data in sheet manually.
I tried to find different solutions but I'm blank as it's totally new work for me, there are elementary examples suggesting VSTO but I couldn't find more detailed examples specifically for charts like the scenario I've.
Has anyone tackled similar issue? If so please advise. I'm open to use either VSTO, OpenXML or even R packages that can help to auto-generate word document with updated charts.
Thank you.
I found solution by using R, it satisfies what I was looking for. A related task and steps are in my other question are here!

Edit a premade macro-enabled excel document from AngularJS webapp

I've got quite the issue that I can't seem to figure out how to do cleanly after hours of scouring the internet, hoping you all could help me out.
We have an AngularJS web-app that is used to create an object in a database according a large set of variables. After the object is put into the database, we want to put some of the fields into a macro-enabled excel doc containing some necessary VBA macros that then downloads to the user's computer.
From what I've found, Angular can output the data to a new excel doc, but we need to have the data put into the pre-existing excel document. The closest tool I've found is SheetJS from a different StackOverflow question/answer, but that answer doesn't actually implement the functionality to edit the current excel, only write to a new excel document.
Any and all suggestions on fixing my problem are appreciated!
I may have found an answer, but it's not quite available yet. I left an issue on the SheetJS GitHub page which got answered today. Sounds like macro persistence functionality is being added into the release this upcoming Friday. From there, add bookVBA:true to the options of your readFile call like XLSX.readFile("filename", {bookVBA:true, /* .. other options */});, and then on your writeFile call you add the option of bookType:"xlsm".
This is of course speculatory, as the change isn't live yet. I'll make sure to update this answer at that time.
EDIT/UPDATE: SheetJS now works in copying over macros to a new workbook, but there's currently a bug. If you have any code in the ThisWorkbook object to do anything on startup, sheet changes, etc., they won't work after writing back out, as it creates a new ThisWorkbook1 object. I've already opened an issue on it, but that should be fixed relatively quickly.

FileStore step by step example with 4.2.1

I am wanting to upload a csv file, validate it, and then upload into an existing model. However, I am using ATK4.2.1 and finding that either the example code that have googled are either missing some steps or not relevant in version 4.2.1.
To this end, for my first step I have tried mixing and matching code in attempt to get a fileStore up and running with no working results thus far.
Is there a step by step tutorial/guide that anyone can point me to. The reference on the agiletoolkit.org site does not have any examples for the atk4-addons; that I can find. It seems that it is more involved than just adding an object to the page.
Grateful for any assistance.
You can find some installation instructions here:
http://agiletoolkit.org/doc/filestore
Import this SQL into your database atk4-addons/misc/docs/dbupdates/filestore-001.sql
Create a new page, page_fileadmin extends filestore/Page_FileAdmin
Create directory 'upload' and make it writable.
In your model instead of addField use $this->add('filestore/File');
If you need images, use filestore/Image instead.
Please join https://groups.google.com/forum/?fromgroups#!forum/agile-toolkit-devel for updates on new documentation.

Resources