foleypro's Q&A profile
Smart Device Development How to zip XML?
My app uses web services to get downloads from a server which returns a chunk of XML. To reduce the volume of data that is transmitted, I'd like to zip the xml packet before it's sent. How do I do it Is there a 3rd party tool I can use Thanks for the help, and have a good weekend everyone :-) Just started my search for documentation on zipping an xml document and happened upon your post. Please forward this vb.net class to me at Angela_Anderson@insightbb.com if you still have it. Thanks ...Show All
Visual J# Consuming a Java webservice within a J# dll
Hi, I was wondering if anybody has any idea of the best way to go about consuming a web service that I wrote in Java within a J# dll. Basically all the dll is doing is passing Strings between a web service and an ASP page. However, I have been able to do this with a .NET web service that I wrote. I just can't seem to add a web reference to a non-.NET web service (I'm guessing because it lacks the .asmx extension )... Can Visual Studio 2005's "add web referenece" understand anything but asmx files Any clues or pointers would be very much appreciated. - R A Stemen Actually, I've figured out how to use Java web services in a .net dll. All you have to do (at least in Visual Studio 2005) is go to add ...Show All
Visual Studio Express Editions how some help fix my code?
'Create a new MailMessage object and specify the"From" and "To" addresses Dim Email As New System.Net.Mail.MailMessage(" From@abc.com ", " To@abc.com ") Email.Subject = "test subject" Email.Body = "this is a test" Dim mailClient As New System.Net.Mail.SmtpClient() 'This object stores the authentication values Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential("username", "password") 'Put your own, or your ISPs, mail server name onthis next line mailClient.Host = "Mail.RemoteMailServer.com" mailClient.UseDefaultCredentials = False mailClient.Credentials = basicAuthenticationInfo ...Show All
SQL Server Reset Report Parameters
Hi I am creating a report which have 10 different parameter. User needs a button or any functionality using which he/she can reset all the parameter at once and view unfiltered report. How can I achieve that Regards You can add a textbox that has an action set to "Jump to Report" and set the report to itself. This will reset the parameters back to their default values or you can specify specific parameters to reset by setting the parameter values that you want to persist to their current value in the Actions dialog. HTH, Jason ...Show All
Smart Device Development Migrating Evc 4 project To VS 2005 Generate error C2440
Hi, I am Migrating Evc 4 project To VS 2005 ,but it Generates error C2440: The Debug info as follow: .\MyView.cpp(51) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl CMyView::* )(void)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)' None of the functions with this name in scope match the target type the IDE pointer to this line: ON_MESSAGE(WM_KDV_HOTLINK, OnHotLinkKDVExplain) the following argument is in the MyView,cpp: afx_msg void OnHotLinkKDVExplain(); #define WM_KDV_HOTLINK WM_USER+101 above is define in a header file. My project is : Single Document others using default. and Vs 2005 professional version 8.0. ...Show All
Visual Studio Express Editions visual basic 2005 Printing
I need some examples on Visual Basic 2005 programs that will display output on the screen and print output on the printer. Thank you. Luis there are a good few examples on the forums. Try a search. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=805077&SiteID=1 http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument(VS.80).aspx http://msdn2.microsoft.com/en-us/library/system.windows.forms.printdialog(VS.80).aspx http://msdn2.microsoft.com/en-us/library/aa467115.aspx hope these will give you a head start ;-) ...Show All
.NET Development Config File, Tracing, and Custom Properties...
Here's a humdinger whopper doohickey that I'm sure someone has run into. I just hope that someone reads MSDN Forums and knows the answer. I am using an app.config file to set my tracing information. I am able to have the config file use an inherited trace listener that I wrote rather than a framework listener, but the problem is, I have properties on my listener that I want to set, and the config file isn't going to recognize them. How do I set the properties on my custom TraceListener through the app.config file I've got my fingers crossed... where's the programmer in shining armor who's going to ride into town, whip out his code manual and throw down an example before riding off in the sunset to answer the next brainteezer. ...Show All
.NET Development Web Service must call a Console App located in the same directory (Simple)
I have a small problem, when I am calling the Console Application from the Web Service it is not bringing it up, it is located in the same directory. Is this possible and please can you tell me how to do it. I think it is simple. This what i got so far. Process prcCompare = new Process (); prcCompare.StartInfo.FileName = HttpContext .Current.Request.PhysicalApplicationPath + "idb\\MappingProc.exe" ; prcCompare.Start(); Thank-you very much for your help ahead of time . Looks like the Console Application is running under the user and the web service is running under the ASPNET or IUSER. Is there any way I can switch the user when I call the process. Thank-You Nikhil very much f ...Show All
Visual C# Getting nu8meric value from TextBox
Hi, I'm trying to get a numeric value from a TextBox, but so far, no good. The help says something about the a numeric property, but i can't find it in the properties list. How can i retrieve the value Any help would be apreciated. Warm Regards, M. ...Show All
SQL Server Permissions
hi all my computer = NZ3 (sql Server) my computer = the report server I can design / view / publish to local host (myserver) others in domain can only view local host (myserver) and no content so to test added one person - as content manager he can now see all reports - but when he goes to run gets the error cannot create a connection to the datasource I am using sql server 2005 standard where else should I be changing or setting permissions thanks jewel Hi, yes you need to Map those Windows User group to Security Node and then Assign them proper privilage for Database and Objects of Database for access as per the Role/Group. Hemantgiri S. Goswami ...Show All
Visual Studio Team System Associating Manual Test With Tasks
We have a tester who will be writing a series of manual tests for our application. We want to associate them with tasks that we store in Team Foundation Server such that it is easy to identify which task needs attention upon failure. Is there an easy way to do this Does anyone have any resources on how this is accomplished Everyone in my office is brand new to this Team Foundation stuff. Custom fields can be created in Task workitemtype to store the test id and the result of it. Those values can be populated manually or programmatically from your testcase management tool. Then tasks with failed results can be queried. I have seen such approach implemented. Workitems can also be linked directly to TestRe ...Show All
Visual C# myprocess.Start() is not working for me in .net 2003
Do u know pls why this code doesn't execute my batchFile.exe what am I missing Thank you System.Diagnostics.Process p=new System.Diagnostics.Process(); p.StartInfo.WindowStyle=ProcessWindowStyle.Maximized; p.StartInfo.FileName=@"c:\dev\myFolder\myBatchFile.exe "; p.StartInfo.UseShellExecute = false; p.Start(); p.WaitForExit(); Thank you it uploads and downloads some files from and to ftp server. I mean all am trying to do is execute a .bet file that executes a .exe by iteslf or may be impersonnation will help, m not sure Thank you ...Show All
Visual C# Need help converting VB to C#
Hi Can someone help me by converting this VB to C#. Thanks a bunch. James Keele Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Modulo10(TextBox1.Text)) End Sub Private Function Modulo10(ByVal strNummer As String) As Integer 'strNummer may only contain numbers between 0 und 9! Dim intTable(10) As Integer Dim intTransfer As Integer Dim intIndex As Integer intTable(0) = 0 : intTable(1) = 9 intTable(2) = 4 : intTable(3) = 6 intTable(4) = 8 : intTable(5) = 2 intTable(6) = 7 : intTable(7) = 1 intTable(8) = 3 : intTable(9) = 5 For intIndex = 1 To Len(strNummer) intTransfer = intTable((intTransf ...Show All
.NET Development C# Checking for Hex '00' in a file
Hi I'm trying to convert from COBOL programming to C# and need to check for what I call Hex zeroes in a file. I've got the file open using open File Dialogue and can read lines of text and have also defined a string of hex zeroes as follows; int lowvalues = 0x000000; However I'm not sure how to go about searching each line read for this value My Readline is as follows. Text = sr.ReadLine(); Any replies should be aimed at the level of an 8 year old ! Thanks Yes - I think you're probably right and it's my ignorance. How do I open it as a binary file and search for the binary 0's Thanks ...Show All
SQL Server Printing a Linked Report in Landscape
I have a report that is setup to print landscape. I deploy to Report Manager, print it, and everything works great. If I create a linked report from the deployed report, the linked report prints portrait. Does anyone know of a workaround or am I just doing something wrong Thanks!! BobP I have posted a bug at Connect. Please vote... This is an irritating issue. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=253208 Thanks BobP ...Show All
