找不到文件指定的错误 [英] Cannot find file specified error

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

问题描述

我也会在CR小组中发布这个,但是因为我在VB中编程也许

这里有人可以提供帮助。


我正在工作在一个包含几种形式的新项目中。我刚刚创建了

我的第一个表格,我在这里为它指定一个变量:


Dim anrpt As New ArmbandNumbers


当此行执行时,我收到错误系统无法找到指定的

文件。并在报告的vb语言中突出显示MyBase.New。


我正在做与我在另一个项目中完全相同的事情那个

工作正常。


我可能会缺少什么?


感谢您提供的信息。


Brad

I will also post this in the CR group but because I program in VB maybe
somebody here might be able to help.

I am working on a new project that incorporates a few forms. I just created
my first form and I am assigning a variable to it here:

Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report''s vb language.

I am doing the exact same thing as I have in another project and that one
works fine.

What might I be missing?

Thanks for the information.

Brad

推荐答案

Brad,


它必须是armbandnummers或braceletnumber(或者它是SA)


但是在我看来这不是错误,所以你应该告诉

更多
Brad,

It has to be armbandnummers or braceletnumber (or is it SA)

However that can in my opinion not be the error, therefore you should tell
something more
Dim anrpt作为New ArmbandNumbers
这意味着从类ArmbandNumbers中创建一个新对象


ArmbandNumbers类可以在引用的dll中丢失,可能会丢失,

但是现在它变成了猜测。


我猜你现在没有使用Visual Studio Net。

Cor


" Brad" < ba ****** @ ukcdogs.com>

我也会在CR小组中发布此内容,但因为我在VB中编程可能
这里有人可能会提供帮助。

我正在开发一个包含几种形式的新项目。我只是创建了我的第一个表单,我在这里为它分配了一个变量:

Dim anrpt As New ArmbandNumbers

当这一行执行时,我得到的错误是系统找不到指定的
文件。并在报告的vb语言中突出显示MyBase.New。

我正在做与我在另一个项目中完全相同的事情,那个
工作正常。

我可能会缺少什么?

感谢您提供的信息。

Brad
Dim anrpt As New ArmbandNumbers This means create a new object anrpt from the class ArmbandNumbers

That ArmbandNumbers class can be in a referenced dll what maybe is lost,
however now it becomes to much guessing .

I am guessing that you are not using Visual Studio Net now.
Cor

"Brad" <ba******@ukcdogs.com>
I will also post this in the CR group but because I program in VB maybe
somebody here might be able to help.

I am working on a new project that incorporates a few forms. I just
created my first form and I am assigning a variable to it here:

Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report''s vb language.

I am doing the exact same thing as I have in another project and that one
works fine.

What might I be missing?

Thanks for the information.

Brad



"布拉德" < BA ****** @ ukcdogs.com> schrieb:
"Brad" <ba******@ukcdogs.com> schrieb:
Dim anrpt As New ArmbandNumbers

当这一行执行时,我收到错误系统找不到指定的
文件。并在报告的vb语言中突出显示MyBase.New。
Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report''s vb language.




这是/完整/错误消息吗?


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB < URL:http://dotnet.mvps.org/dotnet/faqs/>



Is this the /complete/ error message?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Herfried和Cor,


我使用Project |创建了一个新的Crystal Report添加新项目|水晶报告。然后我设置数据集并设计表单。我把这个名字命名为ArmbandNumbers.rpt。


在我的主程序中我:


DIM anrpt as New ArmbandNumbers

>
当程序到达此行时,这是返回的确切异常:


类型''System.IO.FileNotFoundException'的第一次机会异常''发生在CrystalDecisions.CrystalReports.Engine.dll''


附加信息:系统找不到指定的文件。


And in调试,它突出显示MyBase.New():


''------------------------ -------------------------------------------------- ----


''< autogenerated>


''此代码由工具生成。


''运行时版本:1.1.4322.573

''


''对此文件的更改可能会导致错误行为如果


''代码重新生成,将会丢失。


'< / autogenerated>


''------------------------------ ------------------------------------------------ <无线电通信/>

选项严格关闭


选项明确开启


进口CrystalDecisions.CrystalReports.Engine


进口CrystalDecisions.ReportSource


进口CrystalDecisions.Shared


进口系统


导入System.ComponentModel


公共类ArmbandNumbers


继承ReportClass

Public Sub New()


MyBase.New


结束子


感谢您提供的任何帮助。我有几个其他使用Crystal Reports的应用程序,其中一切正常,我像其他程序一样构建语法。是的,Cor,我正在使用VB .Net。


Brad


" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息新闻中写道:Oi ************** @ TK2MSFTNGP11.phx.gbl ...
Herfried and Cor,

I created a new Crystal Report using Project | Add New Item | Crystal Report. I then set the dataset and designed the form. I named this form ArmbandNumbers.rpt.

In my main program I:

DIM anrpt as New ArmbandNumbers

When the program hits this line, this is the exact exception that is returned:

"A first chance exception of type ''System.IO.FileNotFoundException'' occured in CrystalDecisions.CrystalReports.Engine.dll''

Additional information: The System cannot find the file specified."

And in the debug, it highlights The MyBase.New():

''------------------------------------------------------------------------------

'' <autogenerated>

'' This code was generated by a tool.

'' Runtime Version: 1.1.4322.573

''

'' Changes to this file may cause incorrect behavior and will be lost if

'' the code is regenerated.

'' </autogenerated>

''------------------------------------------------------------------------------

Option Strict Off

Option Explicit On

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.ReportSource

Imports CrystalDecisions.Shared

Imports System

Imports System.ComponentModel

Public Class ArmbandNumbers

Inherits ReportClass
Public Sub New()

MyBase.New

End Sub

Thanks for any help you can give. I have several other apps that uses Crystal Reports where everything is working fine and I structured the syntax just like the other programs. And yes, Cor, I am using VB .Net.

Brad

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:Oi**************@TK2MSFTNGP11.phx.gbl...
" Brad" < BA ****** @ ukcdogs.com> schrieb:
"Brad" <ba******@ukcdogs.com> schrieb:
Dim anrpt As New ArmbandNumbers

当这一行执行时,我收到错误系统找不到指定的
文件。并在报告的vb语言中突出显示MyBase.New。
Dim anrpt As New ArmbandNumbers

When this line executes I get the error that "The System cannot find the
file specified." and highlights MyBase.New in the report''s vb language.



这是/完整/错误消息吗?

-
MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



Is this the /complete/ error message?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



这篇关于找不到文件指定的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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