chucucon's Q&A profile
Visual Studio Export E-mail Button and E-mail Prompt DialogBox
I am using CR XI from inside VS .NET 2003. Is there a way to have a button or file menu option show up on the CrystalReportViewer page Is there a pre-existing prompt dialog to enter the email information like the one you get if you are inside CR (menu: File->Export->Export Report) Thanks, Dave The kbase uses SMTP rather than MAPI. The kbase article works with Visual Studio 2002 or 2003. It does not work with Visual Studio 2005. The Web.Mail namespace has been replaced with SMTPClient. Also addressing is done with the .Add property rather than being set directly to string values. HtH, John ...Show All
Visual C++ Where's my VC++ 6.0 keyboard layout (Beta 2) ?
Maybe I'm just not looking at the right place, but I can't find a way to go back to my old VC++ user shortcuts. Old habits die hard ;-) The only options I have are: - Brief - Emacs - VC++ 2 - VS 6 (not VC++ 6) Is the support for VC++ 6.0 shortcuts gone in Beta 2 If you are using the "C++ Developer" profile, you can select "Default" and this essentially is the same as selecting "VC6" since VC6 is now our default. If you are not using the "C++ Developer" profile, then you'll need to go through the "Import Settings" dialog, which, admittedly, is not an ideal experience. Thanks, Tarek ...Show All
Visual Basic VB.NET ComboBox DataSource and generic list of strings
I have problems getting a ComboBox to display the contents of a list of strings. I have a dictionary and I want to display its keys, so I put them in a list (I have tried with different lists, both generic and ordinary ones). Next, I try to set the DataSource property to the list of strings, but then nothing gets displayed in the ComboBox. If I add each string in the list manually it works though. Now, some may say that I need to set the DisplayMember and the ValueMember properties to something nice, but that shouldn't be necessary. When I use the DataSource property in exactly the same way but with a ListBox instead of a ComboBox, it wor ...Show All
SQL Server Newbie! Help with AS errors against both MS SQL 2000/2005 database.
I have spent the last 8 hours looking for solutions to a problem and am feeling like I have hit a brick wall. The problem I am having is deploying an AS project to an AS Server. The Analysis Server is a stand alone server configured by our IT department. I should note that the IT department has little experience with AS. Here are the scenarios: 1. Attempting to deploy the AS project to an AS Server with a data source pointing to a MS SQL 2000 database on a seperate server. If I deploy without first creating a cube or dimensions, I can deploy successfully. Once I create a cube with a dimension, I receive an error, but the data source, data so ...Show All
SQL Server remote views - fox2SQL big problem
I upgraded to a new server (win2k->win2k3 enterp.,sql2000->sql2005,4GB->8GB). Everything else is the same. The foxpro remote views take 10 times longer. (create sql view, requery() ). Struggling for the past 10 days. Foxpro table access and queries inside SQLServer seem fine. Thought it might be the /PAE switch in boot.ini for accessing the 8 GB mem but that won't come off. ...Show All
SQL Server STRANGE SQL Query
When I try to execute the below query: select * from jobmaster where status in ('Active') and materialtypecode in (1,2) and unit='IMPERIAL' and superusercode='S051000014' order by controllercode,jobname through ADO I got the error message: Invalid column name controllercode When I execute the same above query in MS SQL Query Analyzer it is working. Is there any workaround Hi For me , running "Select * from .." sounds like asking for a trouble. Have you tried to run your query with a pre-defined list of colunms NB. ...Show All
Visual Basic DLL PRoblem
Hi All, I'm newbies to create DLL file. I have wrote a custom class file, and I compiled it as a DLL. However, I just couldn't get it register with regsrv32. And I couldn't import or add this dll as a references to MS Access as well. Can anyone give me some idea on what's the basic step we have to do in order to create a Dll file and use it in MS Access REgards, silkkeng Hi, Just another quick question, as I create a sub New procedures, to load the settings and read and write procedures. how do I make sure whether the dll file resources is free from memory ...Show All
Visual Studio Express Editions TreeView question #2
Hi Is there any way to get a TreeView which is being populated with Files to read the appropriate file icons for each of the files I do have a useful program (Audacity) which can rip icons from files, but I suspect that would be a rather long and laborious procedure. Is there any inbuilt function or method to do this kind of thing Even just the system file icons would do most of the job for me. It is a bit boring when I just have one folder icon and one file icon to display in the TreeView. How are you populating the files If you are doing it and not a binding it's easy. If you are using a binding ... I'd say ...Show All
Visual C++ Error D2022 on build of project on network drive
I am bulding a VC++ project in VC.NET 2003. All of the project and source files are on a mapped network drive, mapped by drive letter. The "client" machine (where the project is being built) is Win XP Pro and the "server" machine (where the files are stored) is also Win XP Pro. They are in a workgroup. The client machine is logged in as a local administrator. The credentials used for the mapped drive were local adminstrator on the server machine. Everything was fine under VS 2002. I upgraded to VS 2005 and got an error when I try to build: Command line error D2022 : cannot open 'n:\....\RSP0000001.rsp' I ins ...Show All
Visual Basic wallpaper Device Context handle
wallpaper Device Context handle I have been trying to find the handle to the device context (hdc) of the desktop wallpaper. I can get the handle to the desktop, but that is not what I want. I want to modify the wallpaper bitmap in memory, and then refresh it so I can actually annimate the wallpaper. Modifying the bitmap file on disk will not do it. It is too slow and too disk intensive. Does anyone know how to obtain the wallpaper hdc Thanks, Thesmileman I think this article on the Coding 4 Fun website will help. ...Show All
SQL Server Dynamic Tooltip for TextBoxes in Reports?
Hi, I want to add dynamic tooltip for the textboxes on a report where the tooltip text comes from a database lookup or maybe a resource file How can this be done. This is a required feature for our client and we do not want to add "Constants" as tooltip text which can be done in min as the drawback would be if the value for the tooltip changes, it has to be changed in all the reports wherever it appears. Thanks again. You can do this by creating a second data set and binding the tooltip to aggregate expressions, i.e. =First(Fields!Tooltip1.Value, "TipQuery"). Or you could write a cusom assembly and get them from a custom resource file ...Show All
SQL Server Select Command That Filter Repeated Value
Hi Ihave a table With A Culomn That Is NOT Unique And Repeat Many Tims BUT I want To Have a Select Command That Filter Repeated Value And Show Only One of rows Whith Same Data Thank u ...Show All
Visual Basic Printing in VB or other .nets
i have researched thoroughly the new .net printing paradigm. However, the use of Graphics eliminates the ability to print directly to the printer using Internal Printer Fonts. Eg. i need a way to print using printer font "Stripe 2" such that the printer can print on the magnetic side. In VB6 this was very easy as the printer font's were easy enum'ed. Does anyone know of and could provide a solution/insight into the way to print text directly to the printer specifying a Printer Font (in .net of course) Thanks Joe No go with serial port. ppp (purely parallel port) Maybe someone from micr ...Show All
SQL Server Bar Chart only showing one Bar
I created a bar chart in SSRS 2005. In it, I dragged one field from my dataset to the top, 3 fields to the series section, and one for the buttom. When my chart is displayed, I only see one bar. I would assume as long as the 3 fields I put in the series section has values, that it would produce 3 separate bars, one right next to each other screen shots: http://www.webfound.net/chart_onebar.jpg http://www.webfound.net/chart_onebar_results.jpg ...Show All
.NET Development CType vs. Parse
If I had a form where I wanted to add together two numbers entered as text by the user -- so it becomes necessary to convert the text properties of the textboxes to decimal values -- which approach is better 1: Total = CType(Me.TextOne.Text, Decimal) + CType(Me.TextTwo.Text, Decimal) OR 2: Total = Decimal.Parse(Me.TextOne.Text) + Decimal.Parse(Me.TextTwo.Text) Thoughts I started to say... "Well, it depends upon how much you trust the data, and what you're willing to sacrifice in performance for better checking." Then I thought I would do some performance check ...Show All
