megoo80's Q&A profile
SQL Server Static Data: DB Connection not required.
I have a report with this data query: select ID1 = 6, ID2 = 15, ID3 = 3, ID4 = 3 The data is evidently static here, and hence database access is not required. Is there a way to omit the connection string in the Datasource, or have a disconnected Datasource that does not connect to any database Currently I am setting the connection string arbitrarily, but it would be ideal to omit it altogether. TIA, ana ...Show All
SharePoint Products and Technologies Image displayed based on content type
This is what I want to do and I want to know the best way to do it. I have defined a custom list A with six custom content types. I want to be able to link that list based on its content type with another list B that contains 2 fields (content type name and the url to an image of the content type). I do not want to have to select the image when creating the list item in list A because I have already selected to create an item of that specific content type. Additionally I do not really want the image url stored in the list A list item because I want the ability to change the url to the image for the item and then the view will change for all the items of that content type. Further I would like to be able to add another content type for list ...Show All
Visual Studio 2008 (Pre-release) Install Issue Orcas RC1
I have the following installed .NET Framework 3.0 (RC1) Microsoft Windows Software Development Kit (SDK) for RC1 Visual Studio 2005 But the Orcas RC1 tells me that i'm missing .NET 3.0 Runtime Files which are Installed..So i'm at a loss here,any help will be appreciated...Thxs OS: Windows XP Pro with Media Center 2005 This sounds to me like you have a very old version of "Orcas" installed. The old xmlns uris...the problem loading the designer. You likely want to remove the "Orcas" or any names that used to go by: "VS Extensions for WinFX", etc... Good Luck, Rob Program Manager, WPF Team http://rrelyea.spaces.live.com ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GSE RTM on Vista RTM (unsupported)
i know it's not supported ... but has anybody got it to work bought the club account on the 360 and downloaded the app on the 360. installed Express on Vista with no problems and registered. tried an update, but didn't see any service packs. then i installed GSE, which complained about the VS projects, but it still seemed to install. fired up Express and the XBox 360 Starter kit project was there and built fine. went to tools options, and setup the connection to the 360. then i set the 360 to listening mode. but when i try to deploy, it just comes back and says make sure the the 360 is listening. also, turned off the vista firewall but got the same results. any ideas Thanks, casey By the ...Show All
Visual Basic VB6 interop to .NET webservice client
I have generated a C# client .dll for a .NET webservice. I did this by adding a web reference in VS and edited the .cs file. I have added interfaces and attributes for COM interop. I have it registered on a Win2k machine and cannot access it with VB6. Of course VB6 Intellisense works fine (I'm assuming due to the interfaces). When I run the app, it pukes with 'ActiveX component can't create object'. I understand this to indicate a registry problem, but I've done many REGASM's and GACUTIL's. I have seen many examples of VB6 to webservices, but they all use the MSSOAP3.0 toolkit. I have successfully accessed the webservice with the MSSOAP3.0 toolkit. Is it even possible to hack a VS generated webservice client .dll, and has anyone got an ...Show All
.NET Development Is there any DbProvider implementation (for logging purposes) that is a wrapper around a real DbProvider ?
Does anyone know of a component which can be used as a logger, which will log all SQL statements and forward the SQL invocations to the real SQL driver implementation ( i.e. similar to the java PFJDBC logging driver: http://pfjdbc.sourceforge.net/ ) / Tomas As far as I understand, the SQL Profiler is a tool specifically for Microsoft SQL Server, but I would like to find a more generic SQL logger that can be used with any OleDb or ODBC driver. (at least for future usage I would like to find something generic, but currently I am specifically interested in logging the SQL statements being sent to an Access database through OleDb) / Tomas ...Show All
Visual Studio 2008 (Pre-release) LINQ and Atlas
Ok so what I am trying to do is have a form with a textbox for a search dialog. On keypress I want to query top 25 records and display them in a gridview, so as you type it refines the search etc. So I have hooked up all the atlas javascript methods etc but I am not sure if I am able to do this or not. Basically my webservice code looks like (generated with BLINQ): return from dom in db.Domains select dom; So this should return all my records (fine for now in testing) and my javascript receiving function does the following: function OnComplete(result) { var d = document.getElementById( "<%# grid1.ClientID %>" ); d.DataSource = result; d.DataBind(); } This results in an error of: System.InvalidOperati ...Show All
Windows Forms Move Column in DataGrid
Hi, I'm using DataGrid where I need to move the last column to the first(Remember it is a CheckBox Column that I need to move) and the rest by one position(i.e 2nd to 3rd, 3rd to 4th....). I require a code snippet or atleast an idea about implementing this. Thanks Thanks Knowles, but, I need a Function which sets the transition of columns in the DataGrid ...not the DataGridColumnStyles...Hope to have a function from you. Thanks again ...Show All
Visual Studio Express Editions Printing a form
After following the code found here to print a Windows Form I now have this Dim memoryImage As Bitmap Private Sub CaptureScreen() Dim myGraphics As Graphics = Me .CreateGraphics() Dim s As Size = Me .Size memoryImage = New Bitmap(s.Width, s.Height, myGraphics) Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage) memoryGraphics.CopyFromScreen( Me .Location.X, Me .Location.Y, 0, 0, s) End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click CaptureScreen() PrintDocument1.Print() End Sub Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing. ...Show All
SQL Server help needed in error handling and undo transaction
I am reading a temptable, and doing 2 inserts. In case of error, i want the 2 inserts to be undone, and move to the next line. The complete opposite is happening and the process is being stopped while i wanr it to move on!Help appreciated! This is my code: BEGIN TRANSACTION if exists( select [id] from tempdb . dbo . sysobjects where id = object_id ( N 'tempdb..#textfile' )) drop table #textfile CREATE TABLE #textfile ( line varchar ( 8000 )) BULK INSERT #textfile FROM 'c:\init_newsl.txt' DECLARE table_cursor CURSOR FOR SELECT line FROM #textfile OPEN table_cursor FETCH NEXT FROM table_cursor INTO @oneline SET XACT_ABORT ON WHILE ( @@FETCH ...Show All
Visual Studio Express Editions Form Questions
Hi, I am having trouble with a timer application i am making. I need to make the form central to the x axis, wahtever the resolution, but the y axis must always be at "0". Also, i would like to change the blinking cursor which you type from in a text box to a green square instead of the traditional line. any helop on this would be appreciated. Any Help would be good Thanks Jamie Q1: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Location = New Point((Screen.PrimaryScreen.Bounds.Width - Me.Width) \ 2, 0) End Sub Q2: Declare Function CreateCaret Lib "user32.dll" (ByVal hwnd As IntPtr, ByVal hbmp As IntPtr, ...Show All
Visual C++ WaitForMultipleObjects doesn't work
Hello Everyone! Function WaitForMultipleObjects Requirements: Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95. But this function doesn't work in WinNT. Why Thanks in advance Vladimir Maybe you should replace this: LARGE_INTEGER check_elapse = {10000}; with this: LARGE_INTEGER check_elapse = {-10000}; Otherwise the second argument of SetWaitableTimer is treated as an absolute time value, which is never reached, since it is in the past (1/1/1601). I hope this helps. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. problems creating a triangle strip for a terrain section
Hi I am having a few problems creating an index buffer for a triangle strip for a terrain section. I have a section similar to the following. 0 - 1 - 2 | / | / | 3 - 4 - 5 | / | / | 6 - 7 - 8 I define my triangle strip using the following indices also with one degenerate triangle, I have bolded it so it stands out better. 0, 3, 1, 4, 2, 5, 5, 3 , 3, 6, 4, 7, 5, 8 My first question is, is this degenerate correct it seems to be correct, but my next problem is what confuses matters as it really affects wether my terrain tile renders correctly without gaps. When it comes round to making my DrawIndexedPrimitives call, I have to specify the number of vertices, and the total number of primitives. I would have thought t ...Show All
SQL Server Microsoft Participation in this forum
The VSTS team have posted a really useful manifesto for their participation in MSDN forums which I have read here: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=885414&SiteID=1 I'd like to politely suggest that the SSIS team do something similar on here. People have different expectations of what involvement Microsoft do/should have on this forum and it would help if Microsoft could clarify their position on this. -Jamie Jamie Thomson wrote: I'd like to politely suggest that the SSIS team do something similar on here. People have different expectations of what involvement Microsoft do/should have on this forum and it would help if Microsoft could clarify their position on this. -Jamie I agr ...Show All
Visual Studio Client side report designer
I thought I heard something about a client side application that allows to you create/edit reports, outside of VS Alternatively, is there something out there I can integrate w/ my WinForms applications that would allow my users to create and edit their reports Hi TimRaml, Report Builder is the application you've probably heard about. We ship this with SQL Server Reporting Services. You can learn about this more at http://msdn2.microsoft.com/en-us/library/ms155933.aspx Also, we don't have tools to let end users create/edit reports in WinForms applications. One day we'll consider this. Thanks -Shamez ...Show All
