I have a Crystal Report in Visual Studio 2010. It looks like this:
I would like it too look like this:
How do I change the name of the section from ReportFooterSection1 to Section4?
Unfortunately the Section Expert has no option for renaming a section.
The .cs code that is associated with the *.rpt file does expose the section name and I can change it; unfortunately, when I reopen the .rpt file my changes are lost.
Open the .rpt file.
Open the Properties Window. (View > Properties Window).
Click the section to rename.
Rename it.
Related
I have a *.cs.bak file that I want to temporarily (= no permanent settings) treat as C# in Visual Studio 2017.
I only found out that Visual Studio Code can do it, but looking to do the same in visual studio yielded no results, so I ask the internet about it.
You can just add it in your project with the add existing item. Inside VS just click on your csproj and select Add -> Existing item and select your .bak.
After that, If you click on the file in Solution Explorer and look at the Properties window, you'll see a property called "Build Action". This defines whether the file will be treated like code ("Compile"), included as a resource ("Embedded Resource"), ignored ("None")...
I have a project for which I can't open the settings editor in Visual Studio 2015. If I double-click the Settings.settings file or select the Settings tab in the project properties, the pane doesn't show the usual editor; just the message "The method or operation is not implemented.".
How can I go about finding the cause? Is there some way to see more details of the exception to help figure out what is not implemented? I last worked on the project in VS2013; could opening it in VS2015 have changed something to cause this?
If I create a new project and overwrite its Settings.settings file with mine, it opens fine in that project, but won't open in my existing project.
I'm using Crystal Reports (v 13.0) Wizard to create some RPT reports.
When I add a new .rpt, VS start with the Wizard. Then when the Wizard procedure ends it generates the .rpt file.
I want to know if it is possible to open again the created .rpt file with the Wizard showing the settings I made before, to be able to change them.
If I double click the .rpt file it opens inside the Report view like this:
I tried with right click on the .rpt and the .cs but I found no options like "Open with Wizard..." or so. Is it possible?
With right click on the report in design mode there are many options in the context menu: Database Expert..., Selection Expert... and so on.
So I am trying to create a multiple file template to using in visual studio 2010 C#.
I created an initial template using the visual studio export template wizard.
The problem I am having is when I extract the template and re-zip it visual studio no longer sees the template (note that I change nothing, I only unzip and zip)
Am I missing out a step or something?
Any help would be really appreciated.
Here is what you need to do:
Trick is, instead of selecting the folder which is unzipped, open the folder and then select all the files inside and then zip it. This should work well.
The item obj\Debug\BookStore.MainForm.resources was specified more than once in the Resources parameter. Duplicate items are not supported by the Resources parameter.
How do I fix this?
This error happened when you copy and paste a form in the 'Solution Explorer' pane. Then you change name of one forms. Visual studio give the same name for both and then, when you rename form, Visual Studio do some refactoring for you and rename Designer class for both forms (not only for new).
You can fix this two ways:
Close Microsoft Visual Studio, then browse to your project folder from external program (ex. Total Commander). Into the folder where both forms are defined you can see your form's .cs and .Designer.cs file. Open the .cs and .Designer.cs files for your form in a text editor. Find and replace every instance of the original form name with new name. And if you rename already rename some resources, check file for original form also (if they are only original form name but not anything for new form name). Then save all files, start Microsoft Visual Studio and rebuild your project.
You can try chcek and rename declaration for each occurance of original form name in new .cs and .Designer.cs files but try disable refactoring. If you already renamed new form, in .Designer.cs for old form you maybe see this:
namespace YourProjectNamespace
{
partial class NewFormName
{ .. }
You must rename NewFormName to OldFormName and when Visual Studio offer you a refactoring menu (small reg rectangle before last letter of renamed object) do not make anything.
This happened to me when I created a partial form class. When I unintentionally viewed it in Design mode it created a localized resx file for the new partial form. I deleted that resx file and that resolved it.
you cant add to the resources file 2 items with the same name/key. it has to be unique
Check the *.resx files in your project as #Royi Namir described.
In case you have already done that: check your .resx.designer files. Some programs "optimize" the designer files.
The designer files are just plain xml. If they are not in sync with the corresponding xml you'll get an exception as described.
I have same problem, and I able to resolve it by these steps:
Right-Click to your form name example: MainForm
To Review: Select Find All References now you will see the list of form of possible conflicts
To Fix: Select Refactor -> Rename -
Select Preview reference changes
Rename it Differently
Un-checked for the Conflict Form/class