Forum Discussion
How to manage PowerBI reports with code ?
- 3 years ago
Hi!
1. Opened the Layout file in Notepad++
2. Saved the file in other location as .txt
3. Made changes in Layout file
4. Saved my changes and closed the Layout.txt file
5. Removed the extension .txt from the file in the File Explorer.
6. Copied the file and pasted it in the Report folder in the report zip file
7. Changed the extension of the report file from .zip to .pbix
Regards
Fredrik
Hello Melvin!
I have used your third option with success. This is the steps I used to avoid the file getting corrupted.
1. Rename to .zip
2. Delete the SecurityBindings file
3. Remove <Override PartName="/SecurityBindings" ContentType="" /> in the [Content_Types].xml file
4. Open the file Layout and do my changes in Notepas ++
5. Rename the file to .pbix again
I do not extract the zip file at any time.
Regards
Fredrik
Hello FredrikJ !
First of all, thank you for your reply. I have tried what you said, however it seems that I am not able to save the changes I made in the Layout file when I open it without decompressing the whole folder. I can't overwrite the file while i was able to dot it when the whole folder was decrompressed.
How did you do it exactly ?
Best regards,
Melvin
- FredrikJ3 years agoResolver I
Hi!
1. Opened the Layout file in Notepad++
2. Saved the file in other location as .txt
3. Made changes in Layout file
4. Saved my changes and closed the Layout.txt file
5. Removed the extension .txt from the file in the File Explorer.
6. Copied the file and pasted it in the Report folder in the report zip file
7. Changed the extension of the report file from .zip to .pbix
Regards
Fredrik