1
Bugs and Issues / RunReport with PowerShell
« on: October 21, 2024, 08:46:32 pm »
Hi,
So there is this server with PostgreSQL and Enterprise Architect 17 and Enterprise Architect 16 having a direct link.
The server has a task of creating documents at a timestamp with powershell.
$eaRep = new-object -ComObject "EA.Repository" -ErrorAction Stop
$eaRep.SuppressSecurityDialog = "True";
$eaRep.OpenFile2($model, $doc_user, $doc_pass);
$eaProject = $eaRep.GetProjectInterface();
$eaProject.RunReport("$master_doc_guid", "$template", "$output")
when running this the document comes out bad,
- Frontpage is gone
- Heading numbers are wrong ( 1.1 follows on 32)
- pages that should be at the front are somewhere in the middle or in the back
But when i run the .RunReport Commando with the same parameters within a EA instance Script window (javaScript) the document comes out just fine. (same user, same connection, same machine).
Any suggestions ?
So there is this server with PostgreSQL and Enterprise Architect 17 and Enterprise Architect 16 having a direct link.
The server has a task of creating documents at a timestamp with powershell.
$eaRep = new-object -ComObject "EA.Repository" -ErrorAction Stop
$eaRep.SuppressSecurityDialog = "True";
$eaRep.OpenFile2($model, $doc_user, $doc_pass);
$eaProject = $eaRep.GetProjectInterface();
$eaProject.RunReport("$master_doc_guid", "$template", "$output")
when running this the document comes out bad,
- Frontpage is gone
- Heading numbers are wrong ( 1.1 follows on 32)
- pages that should be at the front are somewhere in the middle or in the back
But when i run the .RunReport Commando with the same parameters within a EA instance Script window (javaScript) the document comes out just fine. (same user, same connection, same machine).
Any suggestions ?