XtrReports,xrPictureBox如何将Image对齐? Winform Devexpress

时间:2015-11-14 09:30:52

标签: c# winforms devexpress xtrareport

使用Devexpress Winforms 12.2版本。我在右侧设计了带有徽标的XtraReport。当图像自动变小时,它会向左对齐。我需要设置拉右。他们无法在财产中设置对齐。如何在xrPictureBox的BeforePrint事件中以编程方式编写代码?

我尝试了这个,但没有工作#----------------------------------------------------------- # This will prompt you for your tenant's credential # You should be able to use your your Azure AD administrative user name # (in the admin@tenant.onmicrosoft.com format) -- **"I have given user who is in global admin role"** #----------------------------------------------------------- Connect-MsolService #----------------------------------------------------------- # Replace the Application Name with the name of your # Application Service Principal #----------------------------------------------------------- $displayName = "Application Name" $objectId = (Get-MsolServicePrincipal -SearchString $displayName).ObjectId #----------------------------------------------------------- # This will add your Application Service Prinicpal to # the Company Administrator role #----------------------------------------------------------- $roleName = "Company Administrator" Add-MsolRoleMember -RoleName $roleName -RoleMemberType ServicePrincipal - RoleMemberObjectId $objectId 显示错误无法将ContentAlignment类型隐式转换为Drawing.Image

先谢谢。

1 个答案:

答案 0 :(得分:1)

您最好搜索其支持渠道,此主题有几个主题,例如XTraReport - XRPictureBox alignmentXRPictureBox - Provide the capability to specify image alignment。从最后一个看起来他们最终提供了开箱即用的解决方案XRPictureBox.ImageAlignment Property,但您需要升级到v15.1。如果您不能,请检查链接中的某些建议的解决方法是否适合您。