路径错误:system.notsupportedexception [英] Error on path: system.notsupportedexception

查看:239
本文介绍了路径错误:system.notsupportedexception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到此错误:



mscorlib.dll中发生了'System.NotSupportedException'类型的未处理异常



附加信息:不支持给定路径的格式。



我是初学者,愿意学习。如果需要请纠正我。我也接受建设性的批评。如果您回复,我将非常感激。



我尝试过:



I'm having this error:

"An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll

Additional information: The given path's format is not supported."

I'm a beginner and willing to learn. Please correct me if needed. I take constructive criticism as well. I'll be really grateful if you did reply.

What I have tried:

report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, @"C:\\temps\\" + textBox4 + ".pdf");

推荐答案

我认为您需要使用:
@"C:\temps\" + textBox4.Text + ".pdf"


这篇关于路径错误:system.notsupportedexception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆