找回密码
 立即注册

QQ登录

只需一步,快速开始

zijian

金牌服务用户

10

主题

56

帖子

324

积分

金牌服务用户

积分
324

时代开发者征文活动

zijian
金牌服务用户   /  发表于:2024-8-29 10:28  /   查看:687  /  回复:5
1金币
在设计器中导出活字格项目文档失败,请帮忙看一下。


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

5 个回复

倒序浏览
Shawn.Liu活字格认证
超级版主   /  发表于:2024-8-29 10:59:29
沙发
大佬,这个问题方便点击截图中的查看错误报告然后上传一下吗,还不确定是整个工程中哪个页面在导出时触发的这个报错,检查起来可能会麻烦一些,后面可能需要收集您的工程请我们开发同事协助排查一下。
回复 使用道具 举报
zijian
金牌服务用户   /  发表于:2024-8-29 11:18:09
板凳
## Overview
- Version: 10.0.5.0
- Exception: `System.IndexOutOfRangeException`
- DateTime: 2024/8/29 11:17:44
- Email: 2289183745@qq.com
- Tags: #CN, #COLLABORATION

## Exception
```json
{
  "ClassName": "System.IndexOutOfRangeException",
  "Message": "行索引非法:39 (必须在-1 和30之间)。",
  "Data": {
    "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
    "System.Object": null
  },
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": "   at GrapeCity.Windows.SpreadSheet.Data.Cells.CheckRowIndexBounds(Int32 row, SheetArea sheetArea)
   at GrapeCity.Windows.SpreadSheet.Data.Cells.get_Item(Int32 row, Int32 column)
   at nt.ConvertDataSeries(SpreadDataSeries a, DataSeries b, Worksheet c, Boolean d)
   at nt.cvs(SpreadChart a, ChartMetadata b, Worksheet c, Boolean d)
   at nt.ConvertToChartModel(SpreadChart spreadChart, Worksheet worksheet, Boolean justForPaint)
   at mm.GenerateChartModel(SpreadChart spreadChart, Worksheet sheet, Int32 index, Boolean justForPaint)
   at Forguncy.Common.ChartPreviewer.GetChartImage(SpreadChart chart, Worksheet sheet)
   at Forguncy.Common.ChartPreviewer.GetChartImage(SpreadChart chart)
   at aq.gk(SpreadChart a, Size b)
   at GrapeCity.Windows.SpreadSheet.UI.GcSpreadSheet.AwaitAllPreviewTasks()
   at Forguncy.DocExport.ExportPictureWorker.ExportSheetToBitmapAsync(SpreadControl spread)
   at Forguncy.DocExport.ExportPictureWorker.ExportPictureAsync(String saveDataStr, String pageName, String savePath, Boolean showGridLine)
   at Forguncy.DocExport.ScreenShotPageInDesignerAsync(String saveData, String pageName, String savePath, Boolean showGridLine)
   at Forguncy.DocExport.PageDocAsync(PageBase page, List`1 listViews, Dictionary`2 pagePermissionDictionary)
   at Forguncy.DocExport.FillPagesInfoAsync(ProjectDoc projectDoc, TaskInfo taskInfo, Int32 startProgress, Int32 endProgress)
   at Forguncy.DocExport.FillDocAsync(ProjectDoc projectDoc, TaskInfo taskInfo)
   at Forguncy.DocExport.ExportAsync(String filePath, TaskInfo taskInfo, String exportedSheetIndex)
   at Forguncy.DocExport.<>c__DisplayClass8_0.<<ExportAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at WPFBase.Common.TaskInfoHelper.CreateAThreadCrossedAutoClosedWindowAsync(TaskInfo taskInfo, Window owner, Func`1 action)
   at Forguncy.DocExport.ExportAsync(String filePath, TaskInfo taskInfo, String exportedSheetIndex)
   at Forguncy.Views.RibbonView.exportToDocButton_Click(Object sender, RoutedEventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233080,
  "Source": "GrapeCity.WPF.SpreadSheet.Data",
  "WatsonBuckets": null
}
```

## EventLog
- 11:15:58 `MouseL`:Window:suxinemes-master - 活字格 (10.0.5.0)->Button:导出文档->ContentControl:导出文档->导出文档
- 11:15:52 `MouseL`:Window:suxinemes-master - 活字格 (10.0.5.0)->RibbonView->文件
- 11:15:42 `MouseL`:Window:活字格 (10.0.5.0)->https://e.coding.net/zijian2018/suxinbandaoti/suxinemes.git

## ActionList


回复 使用道具 举报
zijian
金牌服务用户   /  发表于:2024-8-29 11:18:36
地板
Shawn.Liu 发表于 2024-8-29 10:59
大佬,这个问题方便点击截图中的查看错误报告然后上传一下吗,还不确定是整个工程中哪个页面在导出时触发的 ...

## Overview
- Version: 10.0.5.0
- Exception: `System.IndexOutOfRangeException`
- DateTime: 2024/8/29 11:17:44
- Email: 2289183745@qq.com
- Tags: #CN, #COLLABORATION

## Exception
```json
{
  "ClassName": "System.IndexOutOfRangeException",
  "Message": "行索引非法:39 (必须在-1 和30之间)。",
  "Data": {
    "$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
    "System.Object": null
  },
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": "   at GrapeCity.Windows.SpreadSheet.Data.Cells.CheckRowIndexBounds(Int32 row, SheetArea sheetArea)
   at GrapeCity.Windows.SpreadSheet.Data.Cells.get_Item(Int32 row, Int32 column)
   at nt.ConvertDataSeries(SpreadDataSeries a, DataSeries b, Worksheet c, Boolean d)
   at nt.cvs(SpreadChart a, ChartMetadata b, Worksheet c, Boolean d)
   at nt.ConvertToChartModel(SpreadChart spreadChart, Worksheet worksheet, Boolean justForPaint)
   at mm.GenerateChartModel(SpreadChart spreadChart, Worksheet sheet, Int32 index, Boolean justForPaint)
   at Forguncy.Common.ChartPreviewer.GetChartImage(SpreadChart chart, Worksheet sheet)
   at Forguncy.Common.ChartPreviewer.GetChartImage(SpreadChart chart)
   at aq.gk(SpreadChart a, Size b)
   at GrapeCity.Windows.SpreadSheet.UI.GcSpreadSheet.AwaitAllPreviewTasks()
   at Forguncy.DocExport.ExportPictureWorker.ExportSheetToBitmapAsync(SpreadControl spread)
   at Forguncy.DocExport.ExportPictureWorker.ExportPictureAsync(String saveDataStr, String pageName, String savePath, Boolean showGridLine)
   at Forguncy.DocExport.ScreenShotPageInDesignerAsync(String saveData, String pageName, String savePath, Boolean showGridLine)
   at Forguncy.DocExport.PageDocAsync(PageBase page, List`1 listViews, Dictionary`2 pagePermissionDictionary)
   at Forguncy.DocExport.FillPagesInfoAsync(ProjectDoc projectDoc, TaskInfo taskInfo, Int32 startProgress, Int32 endProgress)
   at Forguncy.DocExport.FillDocAsync(ProjectDoc projectDoc, TaskInfo taskInfo)
   at Forguncy.DocExport.ExportAsync(String filePath, TaskInfo taskInfo, String exportedSheetIndex)
   at Forguncy.DocExport.<>c__DisplayClass8_0.<<ExportAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at WPFBase.Common.TaskInfoHelper.CreateAThreadCrossedAutoClosedWindowAsync(TaskInfo taskInfo, Window owner, Func`1 action)
   at Forguncy.DocExport.ExportAsync(String filePath, TaskInfo taskInfo, String exportedSheetIndex)
   at Forguncy.Views.RibbonView.exportToDocButton_Click(Object sender, RoutedEventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233080,
  "Source": "GrapeCity.WPF.SpreadSheet.Data",
  "WatsonBuckets": null
}
```

## EventLog
- 11:15:58 `MouseL`:Window:suxinemes-master - 活字格 (10.0.5.0)->Button:导出文档->ContentControl:导出文档->导出文档
- 11:15:52 `MouseL`:Window:suxinemes-master - 活字格 (10.0.5.0)->RibbonView->文件
- 11:15:42 `MouseL`:Window:活字格 (10.0.5.0)->https://e.coding.net/zijian2018/suxinbandaoti/suxinemes.git

## ActionList


回复 使用道具 举报
Shawn.Liu活字格认证
超级版主   /  发表于:2024-8-29 11:37:08
5#
zijian 发表于 2024-8-29 11:18
## Overview
- Version: 10.0.5.0
- Exception: `System.IndexOutOfRangeException`

收到,这边在跟进中,有结论后会跟帖回复
回复 使用道具 举报
Shawn.Liu活字格认证
超级版主   /  发表于:2024-9-10 16:47:16
6#
苏工,这边跟进一下这个问题是否已解决哈,上次从日志中猜测是驾驶舱相关页面等在导出时遇到了一个意外的异常,想问一下有拷贝一份工程出来删除与驾驶舱相关的对象后重新导出一下吗。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部