visual-studio-2008

Visual Studio 2008 Crystal Reports Basic (displaying data)

百般思念 提交于 2019-12-12 02:02:54
问题 I'm using crystal reports basic with visual studio 2008. When my data is displayed in a table the details section will show the first item, but if the next item has the same information as the box above it will show empty. This only happens on some of the rows though. If I do a sum on the the value in the box it will show the correct amount as if all the rows were being displayed properly. How can I have it show all the information in each box? Here is a simple layout of what I'm doing and

How to debug in Visual Studio 2008 express C# this scenario

你。 提交于 2019-12-12 01:48:01
问题 I have C# desktop application that loads plugins. the format it loads the plugins is like this: the plugin and its configuration files are ziped in one file and have to be in "Packages" dir when the hosting application loads it extract the zip into the "Unpacked" dir and loades the plug in. now I like to debug the plugin I created but how? I already did the: <StartAction>Program</StartAction> <StartProgram>C:\Program Files\app\MyAppStudio.exe</StartProgram> and it's working fine , but it

Deleting a record from dataset and sql server

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:44:34
问题 I am trying to delete a record from a DataTable and then update the database that it is attached to. I delete a row of my DataGridView and then update my Dataset using: Me.Tab2_DGVDuty.Rows.RemoveAt(Me.Tab2_DGVDuty.CurrentRow.Index) ds1.AcceptChanges() Tab2_DGVDuty.Refresh() I then call my adapter.update as below: Dim adapter As New SqlDataAdapter Dim cmdBuilder As New SqlCommandBuilder(adapter) Dim DutyDetails As String = "SELECT * from MyTable" adapter.SelectCommand = New SqlCommand

Closing Brackets Visual Studio

痞子三分冷 提交于 2019-12-12 01:41:08
问题 I am working in Visual Studio 2008 in C# programming language. I am having a big problem in it, because when I am opening a bracket the Visual Studio is not automatically closing it as usual. I am having great difficulty on it in big methods which contains many brackets (if else/for). Any help is very much appreciated! 回答1: I suggest you install Productivity Power Tools or Resharper. Both these extensions have support for that. 回答2: A good strategy is to type the brackets in pairs first:

Deploy C# project to a website with IIS 6.0

不打扰是莪最后的温柔 提交于 2019-12-12 01:17:21
问题 I am using VS 2008, SQL Server 2008, IIS 6.0 Manager on an XP OS. I developed my very first C# project in VS 2008 and it runs correctly in VS. But now I need to publish this project on my website. This project also involves an SQL Server 2008 Adventureworks database on this same computer. I will use this same computer to host the website and house this database. I know HTML but not how to add a .NET project to a web site, especially one that also uses SQL Server. Can u offer me tips as to how

mailmerge with visto how to get each record of MailMerge.DataSource.DataFields

好久不见. 提交于 2019-12-12 01:16:42
问题 I' have a Project that needs to do a mailmerge, I'm performing this with VSTO. I need to check if all records on the MailMerge.DataSource.DataFields are ok. i'm doing that with this code. public void verificarPersonas(Word.Document Doc) { ThisAddIn ThisAddIn = Globals.ThisAddIn; List<Personas> miListaPersonas = new List<Personas>(); decimal nRecords = Doc.MailMerge.DataSource.RecordCount; if (nRecords == 0) { cambiarEstado("Empty db or documento does'n prepared for mail merge", false); } else

Why does Visual Studio not know the correct definition of this struct?

时光怂恿深爱的人放手 提交于 2019-12-12 01:14:36
问题 I've got a weird issue that almost seems like a Visual Studio 2008 issue. I have a C struct definition as follows: static struct frame { short typupdt; char callarg[1+CallSiz]; char *unitarg; XTime unitage; XTime orgtime; XTime newtime; char oldstat[1+StatSiz]; char newstat[1+StatSiz]; char incdisp[1+DispSiz]; char orgdisp[1+DispSiz]; char clearcod[1+ClearSiz]; char orgclear[1+ClearSiz]; char observd[1+ObsSiz]; char orgobs[1+ObsSiz]; char raddesc[1+Desc1Siz]; char incnum[INVIDLEN]; char

Is it possible to manipulate the format on a DataGridView that is bound to a Data Source?

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:13:42
问题 I´m using SQL Server 2005 and Visual Studio 2008, C#. In the data source (the SQL Server data table) I use the date format mm/dd/yyyy , however, in a forms overview (DataGridView) users would like to see a completely other format, with year, week number and day number of week ( yyww,d ). I´ve created an algorithm for this transformation, but can I populate the affected cells with yyww,d instead of mm/dd/yyyy? And in that case - how would I do it? I guess I need to do it after the cells are

how can I create a custom SSRS report shape?

◇◆丶佛笑我妖孽 提交于 2019-12-12 01:08:36
问题 I'm trying to create a simple SSRS map report in visual studio. I was using the built in map functionality to create one but I need to create custom regions that I will then overlay over a bitmap image of the US. How can i go about creating these custom regions? I need them to be dynamically colored based on sales data. Really lost, so I appreciate any help. 回答1: For custom shapes, you either need to acquire the shape as an ESRI file or convert the shape to a SQL Server spatial data polygon.

How to package a BAT in Visual installer and how to run a BAT file during MSI installation?

自闭症网瘾萝莉.ら 提交于 2019-12-12 01:03:46
问题 I have a BAT file with this content: "XYNTService.exe" "-i" I am currently building up an installation package using Visual Studio Installer. I added this BAT file inside the Application Folder . Now I want to execute it during installation process. How can it be done? I have surf a lot about custom actions, but still fail to understand how to do it. Need help. Thank you. 回答1: Ultimately, you can always run a batch file by doing ShellExecute or CreateProcess on cmd.exe with the relevant