wilbour's Q&A profile
Visual FoxPro Report listener, HTML output on a Win98 machine.
Hi All; I've been using a report listener to produce an html file. On win98 machines the detail band of the erport it empty. On XP all is Okay. Anyone experienced this and knows if there is a solution (Aside from upgrading to XP) Thanks. >> I think it may be related to GDIPLUS. I think you are correct. You may need to explicitly install the latest version of GDIPlus on the machine in order for this to work - assuming that it will work at all on Win 98. Remember Win 98 is no longer a supported operating system for the VFP Development Environment, although VFP Runtimes should work on that platform According to the help file: You can create and distribute run-time applications f ...Show All
SharePoint Products and Technologies problem about Impersonating
I have added the "ReturnsPersonalInformation=true" markup to my method. But the code wiil throw exception when i run at : System.Security.Principal.WindowsIdentity wi = (System.Security.Principal.WindowsIdentity)System.Threading.Thread.CurrentPrincipal.Identity; And the error message: Unable to cast object of type 'Micorsoft.Office.Excel.Server.CalculationServer.WorkOnBehalfIdentity' to type 'System.Security.Principal.WindowsIdentity' any suggestion You need to enable delegation on your Excel Services (does this happen when you run in Excel, or in Excel Services ) In the console, on the server, run this: stsadm -o set-ecssecurity -accessmodel delegation iisreset This should solve the problem. ...Show All
.NET Development c#3 and linq installation
Hello, I would like to know if it is possible to use c# 3.0 and linq. I've downloaded and installed : .NET Framework3.0 Runtime Components and Windows SDK for Vista and the .NET Framework3.0 but nothing is new in visual studio... I've seen in a webcast presenting the linq project that the assembly to use is called : System.Data.dLink. but it is not available. Is there anything I've forgotten during installation Thank you in advance. mathmax I am using Windows XP x64 SP1 I did install .NET 3.0. I did install Linq preview (May 2006). I did the registry hack in the link above (having in mind the "Program files (x86)") I did add System.Query to my console project. And IT DID NOT WORK! VS and the ...Show All
Visual Basic Skipping lines in a test file
I routinely work with text files with well over 3200 lines of text. I am trying to write a routine that will parse the file and skip lines (example every 3 rd line) and save the new smaller text file. I am not a college kid trying to get someone to do his homework for him. I am just trying to teach myself to write simple programs that I find useful. I have 5 or 6 VB.Net books and have not seen this topic in any of these books or the net, does anyone have any tips or pointers to get me moving in the right direction Here is one way to do this: Dim i As Integer = 0 Dim sBuf As String = Nothing Dim fsRead As New StreamReader("BigFile.txt") Dim fsWrite As New StreamWriter("SmallFile.txt") While Not fsRe ...Show All
Visual C# threading the PingReply
I am getting this error when trying to use the Threading in PingReply: System.InvalidOperationException was unhandled Message="Cross-thread operation not valid: Control 'lstHosts' accessed from a thread other than the thread it was created on." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.ListView.ListViewNativeItemCollection.DisplayIndexToID(Int32 displayIndex) at System.Windows.Forms.ListView.ListViewNativeItemCollection.get_Item(Int32 displayIndex) at System.Windows.Forms.ListView.ListViewItemCollection.get_Item(Int32 index) at HostHealth.frmMain.ping_to_host() in C:\Users\Jassim\Documents\Visual Studio 2005\Projects\HostHealt ...Show All
Visual Basic AndAlso Partial Code Coverage Results
I have the following block of code Private _AssemblyId As Int32 Private _Assembly As DotNetAssembly Public ReadOnly Property [Assembly]() As DotNetAssembly Get If _Assembly Is Nothing AndAlso _AssemblyId <> 0 Then _Assembly = New DotNetAssembly(_AssemblyId) Return _Assembly End Get End Property And I have the following unit test <TestMethod()> _ Public Sub AssemblyTest() Dim target As DotNetMethod = New DotNetMethod target.AssemblyID = 1 Assert.IsNotNull(target.Assembly, "Assembly Failed with an AssemblyID of 1" ) End Sub I also created a second unit test identical to the first one except the line target.Assembl ...Show All
Windows Forms how to print chart
hi i want to print chart. iam using mschart control. so that i used the following code. Clipboard.Clear() mchart1.EditCopy() Dim chartcapture As Bitmap Dim iData As IDataObject iData=Clipboard.GetDataObject If iData.GetDataPresent(DataFormats.Bitmap) Then chartcapture = CType(iData, Bitmap) End If e.Graphics.DrawImage(chartcapture, 8, 80) i just copy the chart into clipboard and then convert it into bitmap and then i printed that bitmap. This is working in vs.net 2003 but it is not working in vs.net 2005 one fatal error is coming. The error is The runtime has encountered a fatal error. The address of the error was at 0x7a005c3d, on thread 0x988. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or no ...Show All
Visual Studio Team System WorkFlow customisation
HI All, I am looking out to implement some specific scenario. Developer "A" is assigned some task by Manager "B". "A" is done with assignment now he set the status to Done now what i want to do is; once he says done work item should goto Reviewers Team to revirew the code. Developer "A" will not see any AssignTo dropdown so he will not have any control over to which reviewr this WI will go. Once A set status to Done the System should check the Reviewers Group find out which Reviwer is having Less Work Item & the route this Work Item to that reviewer. Let me know how to achieve this. Thanks, Vishal. HI, Is there any way that i can plug in my ...Show All
Visual Studio Express Editions Wish to use text box to only allow alpha &numeric Data entry
I am creating a windows form with VB expressions How to I allow only text to be input into text box How do I allow only numeric data entered into textbox How do I place a "zero" in the textbox if there is no value for the user to input How do I allow for Currency How do I place "," seperators and "$" i.e $ 1,123,123.00 eg. Code: 'this is to create liabilites calculator Dim mort. as double =textbox1.text Dim Credit as double =textbox2.text Dim Total as Double =Textbox3.text Total = Mort + Credit If i debug and do not place values in the box I get error. So I need to Have "0" by default. Thanks Chris Here is a fairly straight-fo ...Show All
Smart Device Development GPRS modem data connection while connected with ActiveSync. Can it be done?
Hi All, I'm using a WM5 device to develop a .NETCF2.0 application. The application is going to be demonstrated next Monday to a potential customer. The Windows Mobile Power Toys gives me an ActiveSync remote desktop utility that will allow me to demo the app using a projector. This is all fine and dandy but while the device is using ActiveSync all network activity goes through the Wired LAN network that my PC(Laptop) is connected to. I want to be able to use the GPRS connection the Pocket PC phone uses when its not connected to ActiveSync. I've looked through the device network settings and cannot find a way to change this behavior. Is there a way to do this or is this something that cannot be done during an ActiveSync connection. It ...Show All
Windows Forms Tooltips Cut Off
Has anyone experienced balloon style tooltips (IsBalloon) being cut off Many of my tooltips in my application have the last few characters cut off by the end of the balloon. It looks as if they are miscalculating the length of the text. Is there anything that can be done Andrew, Unfortunately, it's nothing as simple as that. The control is trying to draw the characters, they are just cut off by the edge of the tooltip. When displayed in a non-ballooon style, they display fine. In fact, I'm looking at one that is cut off right now that has less than 100 chars. Most of my tooltips don't have this problem, but some do - and some of these are short, and some are long. I have many multi-line tooltips that have many many characters and ...Show All
Smart Device Development binding
i have to combo box in the form and there are binding to the same database and when i build it the program tell me they are two binding to the same database wht can i do in it......................... ...Show All
Visual C# How many threads should a process possess?
Hi, everyone: My application runs with its thread number ranging from 40 to more 60. I wonder how many threads a windows process should have. I have checked a lot only to find that the general MaxThreadNumber for ThreadPool is "25". But how about threads created by Thread.Start Further more, after Thread.Start() was executed in my application, I was surprised to find the the thread may remain "Unstarted" under a uncertain condition which brings about a hang-up. Does this happen just because of too many threads in my application Thank you I don't claim to be an expert on threading, so please forgive my ignorance on the subject. I have read a lot of material about the dos and do ...Show All
Visual Studio Team System FxCop 1.35 changelog
Hi, its nice, that you released a new version, but it would be great, to tell us, what has been changed. i dont need the detailed changelog in the first line, but the biggest 3-4 changes, or just "minor bug fixes" would be really nice. to tell us... I've updated the blog entry to include the major changes: http://blogs.msdn.com/fxcop/archive/2006/06/23/644638.aspx . ...Show All
Visual FoxPro Problem trying to create an Encryption Library
I have followed the example for creating a C# Encryption Libary, but receive numerous errors with regard to no overload method ' ' requires 2 arguments, I have verified that my code is exactly as the example provided by microsoft and found no difference. Has anyone ever tried this code and had problems. Is there any other code to create an encryptoin library in C#. I would appreciate any and all assistance. I am responsible for figuring out how to encrypt the connection string for our web config files in Asp.net page. (we dont' have the .net 2.o framework, we are using Visual Studio 2003 with 1.x framework Thanks Heather However it could be a final fix to define Encrypt and Decrypt methods with 2 parameters as foll ...Show All
