[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-19 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

--- Comment #7 from TISSENDIER Pierre  ---
(In reply to Alex Thurgood from comment #5)
> I can confirm that the preview report doesn't open with the changed
> application background colour preferences when I set it to a colour other
> than the default before loading the preview report from the ODB file.
> 
> I couldn't find where your macro was in the test ODB file in order to test
> whether execution of the macro changes the background colour.
> 
> The question remains as to why the preview report doesn't adopt the default
> application background colour even when this is set application-wide and LO
> restarted ?

"I couldn't find where your macro was in the test ODB"
Normally it is a basic macro named openreport in Standard/module1/OpenReport

Sub OpenReport
Dim oDoc As Object 
Dim oRpt As Object 

'Eventually launch Xray
With GlobalScope.BasicLibraries
If .hasByName("XrayTool") Then 
.loadLibrary("XrayTool")
End If 
End With 

'connect base
ThisDataBaseDocument.CurrentController.connect()


oRpt =ThisDataBaseDocument.ReportDocuments.getByName("rptSoldeEvenement").Open 

'xray oDoc
'oRpt =oDoc.Open

oRpt.CurrentController.ViewSettings.ZoomValue=60
With oRpt.CurrentController.Frame
.ContainerWindow.setBackground(clng("&H0080")) 'mon vert
'   .ContainerWindow.setBackground(0) 'noir
.ContainerWindow.isMaximized=False
.ContainerWindow.setPosSize(250,250,500,700,15)
'x,y,largeur,hauteur,flag
.LayoutManager.HideCurrentUI=True 'pour supprimer les barres d'outils
.LayoutManager.hideElement("private:resource/menubar/menubar") 'pour
supprimer la barre de menu
'   .LayoutManager.showElement("private:resource/menubar/menubar") 'pour
afficher la barre de menu
.Title ="Test Background Report"

End With 

End Sub


Thank for your investigation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-19 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

Alex Thurgood  changed:

   What|Removed |Added

 CC||ipla...@tuta.io
 OS|Linux (All) |All

--- Comment #6 from Alex Thurgood  ---
Tested with 

Version: 7.6.1.2 (AARCH64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 8; OS: Mac OS X 13.4; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-19 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

Alex Thurgood  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW

--- Comment #5 from Alex Thurgood  ---
I can confirm that the preview report doesn't open with the changed application
background colour preferences when I set it to a colour other than the default
before loading the preview report from the ODB file.

I couldn't find where your macro was in the test ODB file in order to test
whether execution of the macro changes the background colour.

The question remains as to why the preview report doesn't adopt the default
application background colour even when this is set application-wide and LO
restarted ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-17 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

--- Comment #4 from TISSENDIER Pierre  ---
I experimented : 
1-Change application-background in menu Tools>options>Interface colors>
application background, choice any color
2-Execute routine "openreport"
Result :
First the background container writer is ok
When report is include background is set blank (automatic)
if you want, you can reset the right background color with
Tools>options>Interface colors> application background :o((

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-17 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

--- Comment #3 from TISSENDIER Pierre  ---
(In reply to Alex Thurgood from comment #2)
> @Pierre: shouldn't you be using :
> 
> https://wiki.documentfoundation.org/Documentation/DevGuide/
> Office_Development#Window_Interfaces
> 
> in particular, something like :
> 
> xPeer.setBackground(0x)

thank you. @alex
It's very hard for me, i'm not very experimented LO's API. In xray i see
com.sun.star.awt.xWindowPeer only in ContainerWindow.Toolkit.DesktopWindow but
this property is  

Really, i thing, it is not possible. It is LO who create the container "writer"
before include the report, so I don't see how to intervene on the container,
before.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-17 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

--- Comment #2 from Alex Thurgood  ---
@Pierre: shouldn't you be using :

https://wiki.documentfoundation.org/Documentation/DevGuide/Office_Development#Window_Interfaces

in particular, something like :

xPeer.setBackground(0x)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 157279] EDITING : ReportBuilder : Can't change the Application-BackGround of preview report

2023-09-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=157279

TISSENDIER Pierre  changed:

   What|Removed |Added

 CC||pierre.tissend...@mailo.com

--- Comment #1 from TISSENDIER Pierre  ---
Created attachment 189633
  --> https://bugs.documentfoundation.org/attachment.cgi?id=189633&action=edit
Base Test change Application-Background

-- 
You are receiving this mail because:
You are the assignee for the bug.