cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal reports viewer spooler impression

rdesbiens
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

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

rdesbiens
Explorer
0 Kudos

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

DellSC
Active Contributor
0 Kudos

I suggest using SP34 instead of SP33 to see whether the issue was corrected there. If it wasn't, please let me know and I'll see what I can do to get the information to the Crystal folks at SAP.

-Dell

rdesbiens
Explorer
0 Kudos

Bonjour, même si j'utilise VS2019 ?

rdesbiens
Explorer
0 Kudos

Rebonjour, J'ai installé le SP34 32bits sur mon poste de developpement. J'ai mis à jour les références mais l'orientation et le pagesize lors du click sur le bouton impression de la visionneuse ne s'applique pas encore. je ne comprend pas. Merci encore

DellSC
Active Contributor
0 Kudos

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

rdesbiens
Explorer
0 Kudos

Je n'ai aucune imprimante de selectionnée et j'ai teste en selectionnant une imprimante. N'oubliez pas que ca fonctionne tres bien pour la version windows 11 21H2. Hum!!


Answers (1)

Answers (1)

DonWilliams
Active Contributor
0 Kudos

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.