找回密码
 立即注册

QQ登录

只需一步,快速开始

啧啧歪
金牌服务用户   /  发表于:2016-1-4 14:36  /   查看:10035  /  回复:11
我在用C1FlexViewerPane控件时,在开发环境中控件能正确显示文档,没有任何问题;但部署到测试设备上时,出现以下错误提示:


测试设备全新安装,系统环境为:win7 X32专业版 SP1,.net 4.0

请问是什么原因,如何解决?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

11 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2016-1-4 17:26:00
沙发
回复 1楼啧啧歪的帖子

谢谢您的反馈。
建议您检查下开发机器和测试机器在操作系统上有什么区别。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
啧啧歪
金牌服务用户   /  发表于:2016-1-4 20:34:00
板凳
二者的操作系统都是Win7 X32 SP1,测试平台系统是.net 4.0, 开发系统平台是.net 4.5.1。
回复 使用道具 举报
啧啧歪
金牌服务用户   /  发表于:2016-1-4 22:20:00
地板
测试平台2在执行C1FlexViewerPane控件时也出错
测试平台环境:全新安装Win XP SP3,.net 4.0:

运行C1FlexViewerPane控件时,出现错误信息为:


详细错误信息如下:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.DllNotFoundException: Unable to load DLL 'dwrite.dll': 找不到指定的程序。 (Exception from HRESULT: 0x8007007F)
   at C1.Util.DX.DirectWrite.DWrite.DWriteCreateFactory_(Int32 arg0, Void* arg1, Void* arg2)
   at C1.Util.DX.DirectWrite.DWrite.CreateFactory(FactoryType factoryType, Guid iid, ComObject factory)
   at C1.Util.DX.DirectWrite.Factory.InternalInit(FactoryType factoryType)
   at C1.Util.DX.DirectWrite.Factory.Create(FactoryType factoryType)
   at C1.Win.FlexReport.C1FlexReport.InitializeRendering(IExecutionContext context)
   at C1.Win.FlexReport.C1FlexReport.InternalRender(IExecutionContext context)
   at C1.Win.FlexReport.C1FlexReport.InternalGenerate(IExecutionContext context)
   at C1.Win.C1Document.C1DocumentSource.Generate()
   at C1.Win.FlexReport.C1FlexReport.Render()
   at GYS2015.C1FormJS_Print.LoadReport(YsbTableID which)
   at GYS2015.C1FormJS_Print.RadioButtonB1_CheckedChanged(Object sender, EventArgs e)
   at System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)
   at System.Windows.Forms.RadioButton.set_Checked(Boolean value)
   at GYS2015.C1FormJS_Print.C1FormJS_Print_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at C1.Win.C1Ribbon.C1RibbonForm.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
GYS2015
    Assembly Version: 3.2.0.1228
    Win32 Version: 3.2.0.1228
    CodeBase: file:///E:/Release/GYS2015.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
C1.Win.C1Ribbon.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1Ribbon.4.DLL
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.99.0
    Win32 Version: 1.0.99.0
    CodeBase: file:///E:/Release/System.Data.SQLite.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
C1.Win.C1Command.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1Command.4.DLL
----------------------------------------
MdiTabStrip
    Assembly Version: 1.5.5.0
    Win32 Version: 1.5.5.0
    CodeBase: file:///E:/Release/MdiTabStrip.DLL
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data.DataSetExtensions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
C1.C1Report.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.C1Report.4.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
C1.Win.C1Input.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1Input.4.DLL
----------------------------------------
C1.Win.C1List.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1List.4.DLL
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
C1.Win.FlexReport.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.FlexReport.4.DLL
----------------------------------------
C1.Win.C1Document.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1Document.4.DLL
----------------------------------------
C1.Win.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.4.DLL
----------------------------------------
C1.Win.FlexViewer.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.FlexViewer.4.DLL
----------------------------------------
C1.Win.C1DX.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1DX.4.DLL
----------------------------------------
C1.Win.BarCode.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.BarCode.4.DLL
----------------------------------------
C1.Win.ImportServices.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.ImportServices.4.DLL
----------------------------------------
C1.C1Pdf.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.C1Pdf.4.DLL
----------------------------------------
C1.C1Zip.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.C1Zip.4.DLL
----------------------------------------
C1.Win.C1InputPanel.4
    Assembly Version: 4.0.20153.102
    Win32 Version: 4.0.20153.102
    CodeBase: file:///E:/Release/C1.Win.C1InputPanel.4.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2016-1-5 09:36:00
5#
回复 4楼啧啧歪的帖子

缺少DWrite.dll文件一般是因为DWrite.dll的丢失,或是病毒的感染造成的。
这是您系统的问题。重装系统,或者修复系统,或者还原。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
啧啧歪
金牌服务用户   /  发表于:2016-1-5 09:44:00
6#
回复 5楼Alice的帖子

谢谢你的回复!但你没有找到问题所在。
我的XP是原盘重新安装,然后装.net4.0,没再安装任何补丁包和其他任何软件,随即运行C1FlexViewerPane控件,最后出现上述错误。这个不是操作系统问题,而是C1FlexViewerPane控件调用了某些DLL,这些DLL没有在C1软件包中提供,也没有在文档中指明还需要其他哪些软件。
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2016-1-5 14:06:00
7#
回复 1楼啧啧歪的帖子

浏览需要至少是Win7 sp1的系统。
我不太理解您使用了XP系统做测试?
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
啧啧歪
金牌服务用户   /  发表于:2016-1-5 14:38:00
8#
回复 7楼Alice的帖子

既然是做软件开发,我当然会把自己的软件在常用的OS上测试。
在FlexReport文档也并没有限定必须Win7 SP1之上才能使用,它只对.net的版本作出了要求。
所以,我选用了FlexReport。
现在使用过程中出现问题,我希望得到一个权威的解答:FlexReport对OS环境到底有何要求?
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2016-1-5 15:17:00
9#
回复 8楼啧啧歪的帖子

它本身对操作系统是没有要求的。
但是这里在画的时候使用到了一个DWrite.dll。这个引用是在Win7或是更高版本下才会有,因此才会报错。

您可以将您开发机器上的DWrite.dll复制,然后粘贴到对应的机器上。如果测试机器是XP系统,粘贴到C:\Windows\System32文件夹下。

我也复制一个这个dll,放在附件里,供您使用。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
啧啧歪
金牌服务用户   /  发表于:2016-1-5 18:32:00
10#
回复 9楼Alice的帖子

经查阅资料,XP中运行出错的原因已经找到:
1、FlexReport使用了DirectWrite/Direct2D技术,而此技术由DirectX 11引入,XP不支持DirectX 11。因此,XP上不能运行FlexReport.
以下摘自FlexReport文档:
FlexReport for WinForms
Key Features
The key features of FlexReport for WinForms are as follows:

Light-weight and Fast
FlexReport is light-weight and fast in particular for smaller reports. FlexReport is rendered twice as fast as C1Report; major exports such as PDF and HTML are much faster than C1Report.

High Quality Rendering
FlexReport uses DirectWrite/Direct2D to draw and generate high performance and quality report content that does not depend on measurement context like printer, screen, etc.

2、结论:FlexReport是对操作系统是有要求的,必须支持并安装了DirectX 11及以上版本。
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部