找回密码
 立即注册

QQ登录

只需一步,快速开始

Mosity

初级会员

27

主题

71

帖子

238

积分

初级会员

积分
238

圣诞拼拼乐

Mosity
初级会员   /  发表于:2022-6-21 09:13  /   查看:1996  /  回复:3
1金币
本帖最后由 Mosity 于 2022-6-21 09:34 编辑

这个是没有找到PDF这个软件吗??


出现如下错误::页面表格中明明有数据为什么点导出为空显示


在执行导出操作时,未知的异常出现。请再次尝试。{  "ClassName": "System.AggregateException",  "Message": "One or more errors occurred.",  "Data": null,  "InnerException": {    "$type": "System.IO.FileNotFoundException, System.Private.CoreLib",    "ClassName": "System.IO.FileNotFoundException",    "Message": "Could not load file or assembly 'GrapeCity.Forguncy.CellTypes.Design, Version=6.0.101.0, Culture=neutral, PublicKeyToken=967100671921c115'. 系统找不到指定的文件。",    "Data": null,    "InnerException": null,    "HelpURL": null,    "StackTraceString": "   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()   at System.Reflection.RuntimeMethodInfo.GetParameters()   at Newtonsoft.Json.Serialization.DefaultContractResolver.GetCallbackMethodsForType(Type type, List`1& onSerializing, List`1& onSerialized, List`1& onDeserializing, List`1& onDeserialized, List`1& onError)   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveCallbackMethods(JsonContract contract, Type t)   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Forguncy.Server2.Controllers.Export.an.a[a](String A_0)",    "RemoteStackTraceString": null,    "RemoteStackIndex": 0,    "ExceptionMethod": null,    "HResult": -2147024894,    "Source": "System.Private.CoreLib",    "WatsonBuckets": null,    "FileNotFound_FileName": "GrapeCity.Forguncy.CellTypes.Design, Version=6.0.101.0, Culture=neutral, PublicKeyToken=967100671921c115",    "FileNotFound_FusionLog": ""  },  "HelpURL": null,  "StackTraceString": "   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)   at Forguncy.Server2.Controllers.Export.an..ctor(String A_0, String A_1)   at Forguncy.Server2.Controllers.a.d(String A_0)   at Forguncy.Server2.Controllers.a.n()   at Forguncy.Server2.Controllers.a.o()   at Forguncy.Server2.Controllers.a.c(Boolean A_0)   at Forguncy.Server2.Controllers.a.i()   at Forguncy.Server2.Controllers.HomeController.a(Object A_0)",  "RemoteStackTraceString": null,  "RemoteStackIndex": 0,  "ExceptionMethod": null,  "HResult": -2146233088,  "Source": "System.Private.CoreLib",  "WatsonBuckets": null,  "InnerExceptions": {    "$type": "System.Exception[], System.Private.CoreLib",    "$values": [      {        "$type": "System.IO.FileNotFoundException, System.Private.CoreLib",        "ClassName": "System.IO.FileNotFoundException",        "Message": "Could not load file or assembly 'GrapeCity.Forguncy.CellTypes.Design, Version=6.0.101.0, Culture=neutral, PublicKeyToken=967100671921c115'. 系统找不到指定的文件。",        "Data": null,        "InnerException": null,        "HelpURL": null,        "StackTraceString": "   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()   at System.Reflection.RuntimeMethodInfo.GetParameters()   at Newtonsoft.Json.Serialization.DefaultContractResolver.GetCallbackMethodsForType(Type type, List`1& onSerializing, List`1& onSerialized, List`1& onDeserializing, List`1& onDeserialized, List`1& onError)   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveCallbackMethods(JsonContract contract, Type t)   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)   at Forguncy.Server2.Controllers.Export.an.a[a](String A_0)",        "RemoteStackTraceString": null,        "RemoteStackIndex": 0,        "ExceptionMethod": null,        "HResult": -2147024894,        "Source": "System.Private.CoreLib",        "WatsonBuckets": null,        "FileNotFound_FileName": "GrapeCity.Forguncy.CellTypes.Design, Version=6.0.101.0, Culture=neutral, PublicKeyToken=967100671921c115",        "FileNotFound_FusionLog": ""      }    ]  }}CurrentMethodName: ExportToExcelThread

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

最佳答案

查看完整内容

您好,这边打印是没有什么报错的,但是确实是没有数据,这时因为打印导出pdf是从数据表中获取数据的如果数据表中本身没有数据的话。pdf中就是没有数据的。

3 个回复

倒序浏览
最佳答案
最佳答案
Lay.Li悬赏达人认证 活字格认证
超级版主   /  发表于:2022-6-21 09:13:02
来自 4#
您好,这边打印是没有什么报错的,但是确实是没有数据,这时因为打印导出pdf是从数据表中获取数据的如果数据表中本身没有数据的话。pdf中就是没有数据的。

本帖子中包含更多资源

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

x
回复 使用道具 举报
Lay.Li悬赏达人认证 活字格认证
超级版主   /  发表于:2022-6-21 18:43:40
2#
您好,您的数据是真实存储在数据表之中的嘛,
pdf导出出错的话,看这个报错信息,也无法定位到具体的原因,方便的话建议您可以发一个demo上来,这样我们也可以更好的帮助到您
回复 使用道具 举报
Mosity
初级会员   /  发表于:2022-6-22 15:58:05
3#
Lay.Li 发表于 2022-6-21 18:43
您好,您的数据是真实存储在数据表之中的嘛,
pdf导出出错的话,看这个报错信息,也无法定位到具体的原因 ...

看这个DEMO。先点确定,再点打印

本帖子中包含更多资源

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

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部