How to export a crystal report to a specific location in project itself (In WebForms) - webforms

How to export a crystal report to a specific location (lets say in "download" folder) in project itself.

I got somthing let you know if it works. crystalReport.ExportToDisk(ExportFormatType.PortableDocFormat,Server.MapPath("../"));

Related

Change deployment location of SSRS report and sub-reports

I need to change the destination of an SSRS report in Visual Studio 2010 so that when I deploy it, it goes to the correct folder. There appear to be about 6 or 10 places where I can change options, I just cannot seem to find the right place to change these deployment options.
On this particular report, there are two subreports. I would like to deploy these two reports to a separate (subfolder) under the folder which contains the main report. I assume that the changes I make in #1 are for SSRS, not for a particular report (is that correct). If so, I will need to change the path for those subreports as well.
Once I have the reports deployed to the correct folders, how do I change the path to these subreports in the Visual Studio report designer? Right now, the reports render properly in the report designer, but when I go to the report server and run the main report, the subreports do not render properly.
I expect this report, along with its sub-reports to render properly from the report server.
You can only change the deployment path in the project properties, so this affects all reports. I did try to setup a similar scenario to what you want bit to be honest it was more trouble than it was worth.
What I ended up doing was having all subreport names start with an underscore and then running a quick bit of t-sql to hide them. I don't have access to the server now but the t-sql is something like
USE ReportServer
UPDATE dbo.Catalog SET Hidden = 1 WHERE LEFT(Name, 1) = '_'
The other way you can do this is to dump all the reports in the same folder but don't give users access to it. Then Create a new folder and add linked reports in there that point back to the original versions, you can do this using the Web Portal (report manage in older versions). It's a pain as you have to do each report individually. You could probably write a script to create the catalog items for you but I've not tried that so can't comment on how easy that would be.
So, saving the subreports to a different folder was straight forward, once I figured out where the project properties were located. Once I deployed those to subreports, all I had to do was change the path to those subreports in the design view of the main report.
Right click on the sub-report, select subreport properties and enter the full path to the sub-report.

Issue With Report Link(Action) in Report builder 3.0

I want to create drilldown report when click to particular row it will open another report.
I do this step. right click on particular field-> TextBox Properties -> Action then checked Go to report option But when I click on Browse then it didn't display any report. I have multiple reports(.rdl file) on my local.
How can I define path ?
You don't see your local reports because Report Builder supports only paths to report servers.
Taken from note at msdn:
In Report Builder, paths to items must specify items on a report server. Paths to items on a file system are not supported. You can preview a report that uses these items only if you are connected to the report server where the items are located.

How do I export a JDeveloper project to a zip file?

I work with eclipse for decades. If I want to export a project to a zip file and open it into another eclipse, it's trivial.
But I am really feeling stupid because I don't know how to do the same with JDeveloper.
Is there any menu command or button that I can just click and export my JDeveloper project to hand to some other developer?
Not from inside JDeveloper - but you can just zip the directory where your project is from outside the IDE and pass is over to the other user.

Create File Structure

Hello I've got a little problem while trying to create a new Project.
My aim is to get a total folder for sourc files, headers, external dependencies and ressource files auto generated.
Visual Studio does not create this folder for me.
I tried to activate and deactivate the plug in for controlling source code folders but it doesnt help.
At the beginning, when i ve created my first couple of projects it automaticallyy generated this folder. But now I do get nothing but my Project file without a source or a header folder
Thank You for every Help
When you are creating a new project there is a check box right above the OK button that says "Create a directory for this solution". Make sure this box is checked.

Multiple build configuration in Advanced Installer

I am using Advanced Installer with Visual Studio 2010.
I managed to create an .aip project, but when I want to add the files from the relevant VS projects, I have to choose the exact location of these files.
I want to use more then one build configuration so I can use config transforms to change my .config files depend on the build configuration I choose.
This is a problem for me because when I compile in Debug the .exe & .dll files goes to bin\Debug, but when I compile in, lets say, Staging these files goes to bin\Staging.
How can I get Advanced Installer to get the right files, meaning get them from the target folder of the build configuration I chosen?
Advanced Installer does not support this by default, but with a little bit of tweaking you can get this working. Let me explain how:
the first requirement is to have your output folders generated by VS in the same parent folder, as you have them both placed in "bin\".
now you need to open your project in Advanced Installer GUI and do the following:
create two builds in Media page, called Debug and Staging
create a property called "Configuration" or what name would you like, from Install Parameters page
in the New Property dialog you will have options to set per-build values for your property. Set them to "Debug" and "Staging", i.e. the names of the folders created by VS
now go to File -> Options -> Path Variables and define a new path variable with your full path for the debug/staging, the one you current have in the project.
from the Home tab, in the toolbar, use the "Convert Paths" wizard and then save the project.
Now, it comes the tricky part, you will need to edit the project file in a text editor, like Notepad++, capable of saving the file in UTF-8 format. Once you open the file look for this XML node:
<COMPONENT cid="caphyon.advinst.msicomp.AppPathsComponent">
<ROW Name="BIN_DIR" Path="<your path>\bin\Debug" Type="2" Content="0"/>
You might have multiple variables here if you are already using this feature. You need to edit the value and replace "Debug" with "[|Configuration]".
Now you can save and build the project and it should pickup the correct files for each of the two builds.

Resources