Complete the code to set the page size to widescreen in Power BI.
pageSettings.PageSize = [1]Setting PageSize to PageSizeType.Widescreen configures the canvas to a 16:9 aspect ratio, which is widescreen.
Complete the code to set the page background color to light gray.
pageSettings.Background = [1]The color Color.FromArgb(255, 211, 211, 211) represents light gray with full opacity.
Fix the error in the code to set the page orientation to portrait.
pageSettings.Orientation = [1]The correct enum for portrait orientation is PageOrientation.Portrait.
Fill both blanks to set custom page width and height in pixels.
pageSettings.CustomPageWidth = [1] pageSettings.CustomPageHeight = [2]
Setting width to 1920 and height to 1280 pixels defines a custom page size.
Fill all three blanks to set page margins: left, top, and right in pixels.
pageSettings.Margins.Left = [1] pageSettings.Margins.Top = [2] pageSettings.Margins.Right = [3]
Setting left margin to 5, top margin to 15, and right margin to 20 pixels adjusts the page layout margins.