3

프로젝트를 vs2010에 만든 다음 배포 프로젝트를 만들었습니다. 내 PC에서 응용 프로그램을 실행하면 분명히 잘 실행되지만 클라이언트 컴퓨터에서는 응용 프로그램이 잘 실행됩니다 크리스탈 리포트. 는 내가 만든 설치 프로젝트를 다음 추가 전제 조건클라이언트 컴퓨터에서 수정 보고서를 실행할 수 없습니다.

Microsoft .Net framework 4 Client Profile (x86 and x64) 
SQL server 2008 express 
windows installer 3.1 

선택>

이런 식으로 내가 프로젝트를 빌드 할 때 성공하고 응용 프로그램이 잘 실행 확인하지만 crytal 보고서없이 내 응용 프로그램과 동일한 위치에서 다운로드 할 전제 조건> 클라이언트 컴퓨터에서. 그래서 전제 조건 SAP Crystal Report Runtime Engine for .NET Framework 4.0을 추가하려고했습니다. ok

다음과 같은 빌딩 설정 프로젝트에서 4 개의 오류가 표시됩니다.

Error 5 To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0.msi' for item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883. 

Error 7 General failure building bootstrapper 

Error 6 To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'Crystal Reports for .NET Framework 4.0\CRRuntime_64bit_13_0.msi' for item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883. 

Error 8 Unrecoverable build error. 

내가 클라이언트 PC에 .NET 프레임 워크 4.0 CR 런타임을 설치 시도했지만이 first install vs2010 to install CR runtime .vs2010 클라이언트 PC에 설치되어서는 안된다는 오류를 제공, 나는 그것을 해결하는 방법을 알고 어디에 문제가되지 않습니다 , 크리스탈 보고서는 내 PC에서 잘 돌아가고 있으며, 클라이언트 PC에서 실행하도록 도와줍니다. 감사합니다. 어떻게 든 그것을 해결

답변

4

, 나는 모든 보고서의 property에게 .rpt 파일을 변경 ContentEmbedded Resource에서 build action를 설정 한 다음 같은 setup 폴더 내 모든 보고서 .rpt.cs 파일을 복사, 그래서 클라이언트에서 잘 실행되고있다 기계도.

+1

'.cs' 파일을 넣을 필요가 없습니다. '.rpt' 파일 만 넣으면됩니다. – Shell

+1

나는 그것에서 .cs 파일을 제거하고, 그것을 실행하는 것을 시도 할 것이다. – varsha

+1

그래,하지만 프로젝트에서. 설치 프로젝트에서 제거해야합니다. 간단히 말해 파일이 빌드되면 .cs 파일을 가질 필요가 없습니다. 응용 프로그램에는 게시 된 .rpt 파일 만 있으면됩니다. – Shell