PowerBI ExportReport Stream format - .net-core

I am using PowerBI online with pro license.
Using PowerBIClient object in .Net core 2.1 I am able to ExportReport function which is returning me Stream.
I want to convert this into an image ( any format) so I can use it further. How do I get this done? Am I thinking correct?

I'm afraid it doesn't work this way. ExportReport returns you the .pbix file, i.e. the report itself, which can be opened in Power BI Desktop. There is no easy way to convert this to an image pragmatically.
You can save this stream to a .pbix file and try to open it in Power BI Desktop. If the data is imported, or in case you have access to the data source, you will be able to visualize the report and export it to PDF, but this is manual operation. Also, you can export the report from the service directly (to PowerPoint and PDF).
You can try to automate Power BI Desktop (e.g. using this), but I wouldn't go this way for a production system.
There are also some 3rd party tools that eventually can help you (e.g. this one).
You can embed Power BI in a desktop application and try some screen capturing magic, but this isn't nice and easy solution either.
You can suggest an idea or vote for existing one in Power BI Ideas, e.g. Export to PDF via Power BI Embedded API.
UPDATE 2020: There is Export to File API now - Export report to PDF, PPTX and PNG files using Power BI REST API (Preview), Reports - Export To File, Reports - Export To File In Group.

Related

Buttons in Power BI to download an Excel file and Launch a ADF pipeline

After some research, I have 2 doubts about buttons in Power BI:
Is it possible to download an Excel file that is just a template, via buttons on Power BI?
Is it possible to also have a button that allows the user to launch an Azure Datafactory pipeline through Power BI?
Thanks
This is what the Power Automate Visual has been made for. Read the docs here: https://learn.microsoft.com/en-us/power-automate/trigger-flow-powerbi-report

How to Export a Report in Microsoft Power BI with Asp.net MVC 5

I am developing a system in Asp.net MVC 5. The system reports are in Microsoft Power BI. The user needs to export the report to an Excel file.
Does anybody know how to apply or develop a button or a Visual in Microsoft Power Bi reports to export the particular report to an Excel file when it is published?
The Export icon is available when the report is in In Power BI account / Dashboard as below.
But when the report is published and when the user views the report through MVC application, there is no way to export data to a .xlsx file or .csv file(as shown below).Export and Pin icons are missing. I need a method or any special widget which can do that work. Thank you in advance.
There are currently two options to export to Excel
Export Data
Analyze in Excel
However, neither of these will allow you to export an entire report including visuals. This is currently one of the more irritating limitations of Power BI.
There are a number of ideas on the Power BI forums that are related to this. Please add your vote and comments to the ones that are most relevant to you.

Google cloud function & Imagemagick: can't deal with PDF

I am trying to convert the first page of a pdf uploaded to Storage to a JPG so that I can generate a thumbnail and display it to my users. I use Imagemagick for that. The issue is that it seems like Google cloud function instances don't have ghostscript (gs) that seems to be a dependency to manipulate pdfs.
Is there a way to have it available in some way?
(fyi, I am able to properly convert on my local machine with both Imagemagick and ghostscript installed). So, I know the command I am using is good.
AWS Lambda instances have ghostscript installed by the way
Thanks
Actually Ghostscript was deprecated from the app engine as well. I think your best option is maybe to use pdf.js deployed with your cloud function. I have not tried it myself but it looks like the only way forward with the current state of CF. Other option is to deploy a GCE with Ghostscript and send a request from the CF to convert the PDF page for you.

How can I use SonarQube web service API for reporting purpose

I want to create a custom report. Response format for sonarqube web service API /api/issues/search is JSON or XML. How can I use that response to create a html or CSV file using "unix shell without using command line tools" so that I can use it as a Report. Or is there any other better way to achieve this?
you can generate a html file if you run an analysis in the preview mode http://docs.sonarqube.org/pages/viewpage.action?pageId=6947686
It looks as if the SonarQube team has been working hard to not allow people to do this. They appear to want people to purchase an Enterprise Subscription in order to export reports.
An old version of sonar-runner (now called sonar-scanner) had an option to allow local report output. But that feature is "no more supported".
ERROR: The preview mode, along with the 'sonar.analysis.mode' parameter, is no more supported. You should stop using this parameter.
Looks like version 2.4 of Sonar Runner does what you want. If you can find it. Of course they only have 2.5RC1 available on the site now.
Using the following command should work on version 2.4:
sonar-runner -Dsonar.analysis.mode=preview -Dsonar.issuesReport.html.enable=true
There at least two open-source projects that query the SQ API to generate reports in various formats.
https://github.com/cnescatlab/sonar-cnes-report/tree/dev (Java)
https://github.com/soprasteria/sonar-report (JavaScript/Node)
At the time of writing both are active.

Is it possible to copy the monkey runner results to a excel file

I want the results to be in a excel sheet.
The results should be made as a report.
I am testing a android device and want the result.
monkeyrunner
If you want to automate the whole process you can try xlwt podule to write Excel files from python.
If monkeyrunner gives you some problem importing python modules give AndroidViewClient/culebra a try.
Additionally, ask yourself whether you need Excel at all when you can generate nice reports from python using Sphinx or pod.

Resources