on 09-20-2023 7:04 PM
Bonjour
Je developpe des application avec Visual Studio. J'utilise les DLL de Crystal reports pour imprimer mes rapports (crystalreportviewer). Depuis la mise a jour windows 11 version 22H2, le format de page (pagesize) et orientation ne fonctionne plus avec la nouvelle interface d'impression. Avec l'ancienne interface (version 21H2) ca fonctionne
Merci
I suspect that you're using an earlier version of the Crystal .NET SDK that is not compatible with Windows 11 22H2. You can find the Supported Platforms document here: https://www.sap.com/documents/2016/06/f871031e-757c-0010-82c7-eda71af511fa.html
Windows 11 22H2 wasn't supported until SP 33. So, you would have to download the latest SDK integration with Visual Studio - the download link can be found in the wiki and upgrade your application. Then use an upgraded version of the runtime install when deploying your updated application.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bonjour
J'ai appliqué votre réponse mais j'ai encore le problème que lors de l'impession l'orientation et le pagesize ne s'applique pas au rapport crystal (dû au nouveau spooler impression de la version 22H2). Le rapport crystal dans le viewer est correct dans le viewer mais lors du click sur le bouton impression, le pagesize et orientation ne suive pas, peu importe imprimante selectionnée
sur mon poste de developpement
J.'ai réinstallé SP33 pour vs 2019 (CRforVS13SP33_0-80007712), le runtime (CR13SP33MSI32_0-80007712 (1).MSI).
Voci mes références utilisées:
voici un bout de code:
<WindowsFormsHost Name="WF1" Height="Auto" width="Auto" Grid.IsSharedSizeScope="True" Grid.ColumnSpan="2" Margin="0,0,0,10">
<Viewer:CrystalReportViewer x:Name="CRV1" BorderStyle="Fixed3D" AutoSize="True" ShowParameterPanelButton="False"></Viewer:CrystalReportViewer>
</WindowsFormsHôte>
Code Behind:
LeRapport.Load(chemin du rapport)
LeRapport.Refresh()
CRV1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None
With crconnectioninfo
.DatabaseName = Lechemin & "\" & BD
.Mot de passe = PassW
End With
CrTables = LeRapport.Database.Tables
For Each Crtable in CrTables
crtablelogoninfo.ConnectionInfo = crconnectioninfo
Crtable.ApplyLogOnInfo(crtablelogoninfo)
Next
CRV1.Refresh()
Me.CRV1.ShowCloseButton = True
Me.CRV1.ReportSource = LeRapport
WF1.Enfant = CRV1
Me.CRV1.Zoom(LEZoom)
Merci
I can see from your screen-shot that it should be landscape instead of portrait. When you edit the report in Crystal (or in Visual Studio) has it been configured for the printer you're using? If it has been configured for a different printer that you don't have access to or for no printer, I suspect that it is picking up your default printer settings instead of looking at the report's page settings.
don2022, do you have any thoughts on this?
-Dell
Yes, CR for VS installs into VS 2010->2022
And to confirm there were Viewer issues in SP 33, so keep up to date always.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.