Topics
-
- 0 replies
- 2.4k views
Hi... my customer is trying to add a string measure to the cube browser of SQL Server 2005 Business Intelligence Manager. He does not want to show it as a dimension. Only measures could be added to the column fields area or the cube browser, so I tried to create a text based measure but, when implementing the cube, SQL sends the following error: "Errors in the metadata manager. The data type of the 'Name' measure is not valid because the data type of the measure is a string type". Any idea? Thanks.
Last reply by hugoski, -
-
- *Experts*
- 1 reply
- 1.7k views
I have two tables with the identical schema. I need a query which will return this SELECT DISTINCT man FROM table1 SELECT DISTINCT man FROM table2 i.e. I need all the results from both tables in one query? How do I do it? Thanks
Last reply by Nerseus, -
-
-
- Administrators
- 2 replies
- 3k views
Well here is my problem i got a multi thread/form project. and if i try to use the clipboard on any other from then the "start form" i get a thread error.... sample code included. Tnx for any help! PlayWithForms.zip
Last reply by Wing, -
-
-
- Administrators
- 2 replies
- 2.1k views
I tried using "System.IO.Compression" to compress a stream I am saving to harddisk. It reduced the file size a bit, but when I recompressed the files again with an arhiving software the results amazed me. The uncompressed files squeezed in to much smaller files. Here are the file sizes: Uncompressed 256 KB Uncompressed --> rar --> 64 KB Uncompressed --> zip --> 75 KB GZipStreamed 197 KB GZipStreamed --> rar --> 107 KB GZipStreamed --> zip --> 110 KB What do you suggest? Should I save the files uncompressed and compress the files with some algorithm? Or do you know a better way to compress a FileStream? Here …
Last reply by JumpyNET, -
-
- 2 replies
- 739 views
I'm looking to create a central business object that will be used by most of our internal web applications. In doing my research, it seems that a web service will offer the most flexibility while still allowing a central location to host and maintain. My question is; is this the best choice? I'm looking to consolidate common functionality such as employee details, database access, and logging. If it is the best choice, how do I handle instances where I want to return a custom class from the web service? For example, lets say I want to return an employee object. I'm trying to avoid having to update each client application everytime we change something on the …
Last reply by ClassicRock, -
-
- Administrators
- 5 replies
- 3.7k views
I have created a view using the DefaultView.Sort property. If I bind this data to a data grid I can see the data is sorted. If I loop through each of the rows, the rows are not sorted. Is there a way to sort the DataView so that the rows are sorted? C# code DataView tmp = myData.Tables["ATable"].DefaultView; tmp.Sort = "SomeColumn"; dataGridView1.DataSource = tmp.Table; // Loop through each row in the tmp var. They are not sorted, // but the data grid is. foreach (DataRow currentRow in tmp.Table.Rows) { string rowCol1 = currentRow[1].ToString(); } The rows returned in the loop are not sorted. The datagrid on my forum is. Any ideas on how to get a loop thr…
Last reply by AlexandreNegrao, -
-
-
- Leaders
- 1 reply
- 783 views
I use SetAttr to set a file attribute in VB.NET 2005: FileSystem.SetAttr(FilePath, FileAttribute.Normal) But in MSDN I red that: The My feature gives you greater productivity and performance in file I/O operations than SetAttr. For more information, see My.Computer.FileSystem Object. However I was unable to find the "My" version of this command, what should I use? Thanks.
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 818 views
I have a windows application that writes to a .txt file. I would like to give users the opportunity to view the text file while the application is running. Is there a way to do this? I have already set it up so it creates the file, writes to the file and closes the file and that all works fine. I just thought it would be nice to give users the option to view the file and save as or print during the use of the application instead of having to wait until they close the app. Thanks in advance for any help.
Last reply by snarfblam, -
-
- 1 reply
- 1k views
Hi, I want to know if you guys can recommand me some tools to compare two XMLs. Some folks mentioned about WinDiff, but that's not too useful because the order of XML tags can be different. Would it possible for me to quickly implement a tool that utilizes the XML methods from .NET to compare two XMLs? Thanks a lot. Alan.
Last reply by mskeel, -
- 0 replies
- 716 views
I am thinking on writing a small program to control the WLAN connections in PocketPC. the purpose of doing this is: I want to limit the Pocket PC from searching networks that are not neccesary. the problem I am facing now is: from time to time, the pocket pc connects to the nearby networks and it interrupts the operations of my software application. do you have any recommendation on how can I achieve this? Any dlls or api to be recommended? One beer for one reply :P
Last reply by georgepatotk, -
-
- Administrators
- 4 replies
- 1.3k views
How can I save an array of custom structure type to a single file on harddisk? I gues I would need to get the starting address and length of "ThisNeedsToBeStored"-array and save it byte by byte, but I dont know how to do it in VB. My objective is to save and read back the array to a file as easily and fast as possible. Below is an example of a structure I am talking about. Public Structure OwnStructB Dim Aaaa As String Dim Bbbb As Date Dim Cccc() As String End Structure Public Structure OwnStructA Dim Aaaa As String Dim Bbbb As Date Dim Cccc() As String Dim Dddd() As OwnStructB End Structure P…
Last reply by JumpyNET, -
-
-
- Leaders
- 7 replies
- 1.1k views
Somthing like this: private void DoSomthing() { AA a = new AA(); // do somthing with a a.Dispose(); // } Is it necessary call the last line (a.Dispose) ? In C++, I would do it w/o second thought. But in C#, I am not so sure about it. Any suggestion? Thanks in advance.
Last reply by Worrow, -
-
-
- Administrators
- 5 replies
- 1.5k views
I am looking for the best method of downloading files where the name of the file isn't given in the link. This primarily happens with pages that use PHP or Perl scripting to handle links from a database. The program I am working on is a type of download manager that lets you drag and drop links from a page and will then download the file in question. I can get the link, but there is no filename on it. I know it can be done because other download managers work with it, I am just not sure of the method since every example I find deals with knowing the name of the file beforehand. An example of the link data I am talking about is: http://files.modthesims2.com/getfil…
Last reply by mooman_fl, -
-
- 4 replies
- 1.1k views
On this new project we're working on, it seems like less and less. Data/business layer is in TSQL in the SQL Server supplying Web Services. The front end is using Infragistics controls primarily and will be 100% client side DHTML/AJAX, so everything after the Page_Load event will all be in javascript. So far with my Infragistics controls for the last 10 pages I've made yesterday, not a single line of C# (that I've written at least!) in them. Between the configurable controls and javascript, everything is taken care of. We'll have to write some code and maybe even a postback for logging in and Permissions/Roles. The really funny part is that the company …
Last reply by amir100, -
- 5 replies
- 1.5k views
I have this code that Mr Paul kindly helped me with a while ago 'Imports Imports System.Drawing Imports System.Drawing.Imaging 'Code Dim oldImg As Image Dim newImg As Bitmap 'Load original image oldImg = Image.FromFile(fileName) 'Create new image at new size newImg = New Bitmap(oldImg, 200, 150) 'Save newImg.Save(newFileName, ImageFormat.Jpeg) What i'm trying to do is take newImg as use it in an asp.net image control. Can't seem to get it to work Image1 = newImg Value of type 'system.drawing.bitmap' cannot be converted to 'system.web.ui.webcontrols.image' Is there a way to do it without saving the new image to disk first? Thanks
Last reply by amir100, -
-
- Leaders
- 3 replies
- 1.3k views
I'm writing a sub in one of my VB programs for downloading .exe files from an HTTP server to the local machine. But when ever the file is downloaded it appears to be corrupted because no icon shows on the file and it wont run. The same code works fine for ordinary HTML pages but not exes it seems. Can anyone help with this problem? - here's the sub: Dim v_base As String = "http://www.talbotech.com/" Public Sub GetFile(ByVal uri As String, ByVal toFile As String) Dim wreq As Net.HttpWebRequest = Net.WebRequest.CreateDefault(New Uri(v_base & uri)) wreq.AllowAutoRedirect = True wreq.Proxy = Net.WebProxy.GetDefaultProxy…
Last reply by dynamic_sysop, -
-
- 0 replies
- 819 views
Hi, I am looking for the API (I assume its the API.. not sure really, im listening at windows.forms.Messages at the WParams and msgs..) for the print dialog and the arrow keys. What I want to be able to do is stop any attempt at the print dialog box from appearing (for example if your on a website and you have those print buttons which pops up a dialog box for printing, I want to stop that) Also I want to do stuff with the arrow keys .. I have the mouse buttons, but can't find much of the rest .... iv been to the msdn site and got lost... :s If anyone could help i would be grateful :) Thanks
Last reply by Illusion, -
- 0 replies
- 736 views
I set a cacheduration:=120 on one of my webmethods. it doesnt seem to be working. all of the code is executed evertime the method is called. do I have to do something to enable cache?
Last reply by kelphis, -
- 0 replies
- 974 views
Hello. I would just like to know how can I communicate with a scanner a make it scan something on my command, in C#. Thank you
Last reply by EFileTahi-A, -
-
- Administrators
- Leaders
- 2 replies
- 1.1k views
I'm building a site for a photographer who wants to sell his work online. To prevent people simply right clicking on the image and choosing save as we're going to "watermark" each image with the website address. Is there any easy way to do this automatically using the image classes? Thanks
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online