473,761 Members | 6,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set Crystal Report Namespace

In .Net, how can I go about and set a Crystal Reports namespace? Right now
they use the Root Namespace (VB) from the project. How can I extend the
namespace for a single report (which will be set on all reports)?

Thanks for any and all help, in advance :)

Mythran
Nov 16 '05 #1
2 4933

"Mythran" <ki********@hot mail.comREMOVET RAIL> schrieb im Newsbeitrag
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
In .Net, how can I go about and set a Crystal Reports namespace? Right now they use the Root Namespace (VB) from the project. How can I extend the
namespace for a single report (which will be set on all reports)?

Thanks for any and all help, in advance :)

Mythran


Hi Mythran,

Crystal Reports provides the following namespaces:
http://blogs.aspadvice.com/crystal/a...03/31/884.aspx

Greeting

Thomas
Nov 16 '05 #2

"Thomas Wenning" <no************ *******@gmx.de> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..

"Mythran" <ki********@hot mail.comREMOVET RAIL> schrieb im Newsbeitrag
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
In .Net, how can I go about and set a Crystal Reports namespace? Right

now
they use the Root Namespace (VB) from the project. How can I extend the
namespace for a single report (which will be set on all reports)?

Thanks for any and all help, in advance :)

Mythran


Hi Mythran,

Crystal Reports provides the following namespaces:
http://blogs.aspadvice.com/crystal/a...03/31/884.aspx

Greeting

Thomas


Sorry, don't think I was clear enough. I have a strongly typed crystal
report (created in the .Net IDE so it's CR.Net). Right now I have to use
the project's namespace to access the report (Ex:
MyCompany.MyPro jectType.MyCrys talReport). I want to set it to have
MyCompany.MyPro jectType.MyRepo rts.MyCrystalRe port but it won't let me.
After viewing the manifest of the assembly when I set the Custom Tool
Namespace property, I see that the code file for the report (*.vb) is under
the correct namespace that I want but the report file itself is under the
project root namespace. Therefore, I believe this to be a bug in either the
..Net compiler or the CR.Net framework...

The Crystal Report file (*.rpt) should go under the correct namespace in the
assembly manifest that I define using the Custom Tool Namespace, or there
should be some way of setting the namespace that the report should go under.

To reproduce what I'm trying to do and the exception I'm getting:

Create new Web Project.
Add a Crystal Report.
Select the Crystal Report under the Solution Explorer and right-click it.
Click Properties
Change the "Custom Tool Namespace" to "Reports".
In code, create the report and export it (report.ExportT oDisk(pdfenumty pe,
"C:\sample.pdf" )).
Build and then test it.

Intellisense works fine and shows the report as being under <project root
namespace>.Repo rts.<report name> but an exception is thrown that states the
report is not in the assembly manifest. The report IS there, but not with
the same name (or namespace). To test how I came to this conclusion:

Dim asm As Reflection.Asse mbly = Reflection.Asse mbly.GetAssembl y( _
GetType(<nameof thisclass>) _
)
Dim names As String() = asm.GetManifest ResourceNames()

For Each name As String In names
Console.WriteLi ne(name)
Next

Change <nameofthisclas s> to the class name of the class which contains the
above sample code :)

Anywho, hope this helps explain a bit more :)

Mythran
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4898
by: Craig Faulkner | last post by:
I have been fighting through my first crystal report in VS2003.NET and have made some headway. Here is what I've done: 1. Created a crystal report in VS2003 from a SQL stored procedure with parameters through the GUI. 2. Finally got past the logon failure error to display the report using the viewer. I assume that default parameters are being used since it does display some data and the SP won't run without being passed some values.
0
342
by: Gav | last post by:
Hi all, I have several crystal reports in my application, not sure if this has any part of the problem but I recently changed the namespace name, I didn't seem to have any problems... but I changed the database location of the report and now VS is saying that the report doesn't exist in the namespace. It it posssible to access the namespace information of the crystal report? thanks
0
3638
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've reproduced the relevant file below.)
2
5292
by: Mythran | last post by:
In .Net, how can I go about and set a Crystal Reports namespace? Right now they use the Root Namespace (VB) from the project. How can I extend the namespace for a single report (which will be set on all reports)? Thanks for any and all help, in advance :) Mythran
0
1681
by: Monali | last post by:
Hi, I created a ASP.NET crystal reports web site in VS 2005. I wanted to display the data in a DataSet in the Crystal Reports viewer control. I am getting the DataSet from another dll. The documentation says that I need to add a new item - Crystal report, with a blank report in the project which will automatically create a class say CrystalReport1 in my project (if the name of the crystal report added is CrystalReport1.rpt). I should...
0
3908
by: bonita | last post by:
In my ASP.NET page, I have 2 checkboxes for users to choose which crystal report they want to display. These two reports use different tables. If report1 has been choosen and displayed in the crystal report, then I cannot check another checkbox to display report2 afterwards. If I close the website and open again, I can choose report2 and display as crystal report correct, but now I cannot check the checkbox1 to display report 1 afterwards....
1
2407
by: John | last post by:
I'm trying to develop a crystal report page using inline code (no code behind page). Here is my code: <%@ Page language="c#" %> <%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=652fbea5521e1541" %>
6
2486
by: Simone | last post by:
Hello Here is my issue, I created a crystal report using a data set from my xsd. Then I created a page with the crystal report viewer control and bound the report to it. When I try to view the report on the browser I get a logon page even though my dataset has a connection string saved within it. When I preview the data in the dataset I see it no problem. however the report doesn't seem to know that the dataset is there or that the
0
2192
by: AboutJAV | last post by:
Hi, I got a crystal report (.rpt + .cs files) and the dataset (xsd + cs + designer.cs + .xsc + .xss). I added them to my project and changed the namespace values in the cs files. When I added a method to declare a rpt class object like my crystal report file/class is MyCrystalReport.cs and the
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.