Forum Discussion
Change default page dimensions with .json theme.
Is it currently possible to change the default width & height of a report page using a .json theme? There are attributes such as pageSizeWidth in the schema, but they do not seem affect the report. I have tried the following:
"visualStyles": {
"page": {
"pageSize": [
{
"pageSizeTypes": "Custom"
},
{
"pageSizeWidth": 2560
},
{
"pageSizeHeight": 1440
}
],
The use case is that themes may contain different default font sizes & other visual attributes that do not work well with the default page dimensions. And so it would be helpful if default page dimensions can also be provided by the theme file.
- Anonymous3 years ago
Hi owend
You can use json to change the background or outspace of the page. However, if you want to change the page size through json, it may not be possible, it is not currently supported, you can refer to the following link .
Solved: Set default size of visuals in custom theme file - Microsoft Power BI Community
Solved: Setting the page size in theme - Microsoft Power BI Community
Power BI Custom Theme example - Import json file theme - Power BI Docs
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi owend
You can use json to change the background or outspace of the page. However, if you want to change the page size through json, it may not be possible, it is not currently supported, you can refer to the following link .
Solved: Set default size of visuals in custom theme file - Microsoft Power BI Community
Solved: Setting the page size in theme - Microsoft Power BI Community
Power BI Custom Theme example - Import json file theme - Power BI Docs
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.