Search results for query: *

  1. M

    byte array bounds checking

    I have a website that is to read a .txt file and display it's contents in a formatted way. The problem has arised that a file may be locked and therefore it will need be readable using file.readalltext(filepath).split(vbcrlf). I am now working on reading each file through a byte array and msdn...
  2. M

    Get Application Path Name

    Sorry, I am a little confused by your wording, but you might be looking for My.Application.Info.DirectoryPath
  3. M

    Scaling a form to fit to page

    simple enough. Thanks alot
  4. M

    Scaling a form to fit to page

    I was able to implement that and I appreciate the help. I also need it to print as landscape but I do not want to client to be able to choose. Is there any setting or property that will make the image print landscape?
  5. M

    Scaling a form to fit to page

    I have code that takes a snapshot of a form to send to a printer. Dim g As Graphics = Me.CreateGraphics() Dim s As Size = Me.Size memoryImage = New Bitmap(s.Width, s.Height, g) Dim mg As Graphics = Graphics.FromImage(memoryImage) Dim dc1 As IntPtr =...
  6. M

    Being able to fax

    I need some help on faxing within my application. I am using vb.net 2005 and .net framework 2.0. The only reference I can find referencing faxes is a COM Fax control 1.0. I really don't want to download a third-party object to fax. Is there anything else I can do? Thanks
  7. M

    Avoiding duplicate entries in SQL database

    I don't think this is so much a database issue but maybe something that needs to change in the code. Since multiple users are logging in at the same time I am assuming that you are using a multi-threaded application. The code that is used to call the stored procedure should probably be in a...
  8. M

    Relative path question (server.mappath())

    I am having substantial problems with a Web site I have created. There are different files that get accessed from a "Data Files" folder and .jpg from a "Images" folder. Testing from my PC and others in the same office, the Server.Mappath("Data Files") and Server.Mappath("Images") works great...
  9. M

    Reading an XML file

    Thank you for the suggestion. I'll work on that and the first time I tried it, it did not error out correctly because when I use the username in the xpath, and it is not there, it still goes through and does not error out as "user not found" error. It does work when the user is found, however...
  10. M

    Reading an XML file

    I have figured it out, here is the code that I used: Try Dim oXmlDocument As New XmlDocument Dim NodeList As XmlNodeList oXmlDocument.Load(FTPSite & "UserData.xml") NodeList = oXmlDocument.SelectNodes("/USERS") For Each Node...
  11. M

    Reading an XML file

    I need some help authenticating through an XML file. The .XML has the following format <USERS> <user1>pw</user1> <user2>pw</user2> ... </USERS>I use this code to read and authenticate Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As _...
  12. M

    .txt formatting with vbCrLf

    I need a little bit of help with the following code. I am trying to print in a particular format, which I thought this did, but it seems to add an extra vbCrLf to the .txt file, to make it appear to be double spaced. I took out some of the vbCrLf's and all that did was not move to the next...
  13. M

    ftp a local file

    I did a search for "FTP" for this site but it didn't pull up and returns. That previous thread did help out. Thanks
  14. M

    ftp a local file

    Const localFile As String = "C:\Test.txt" Const remoteFile As String = "/bin/Testing/Test.txt" Const host As String = "ftp://ftp.website.com" Const UserName As String = "user" Const Password As String = "******" Dim URI As String = host & remoteFile Dim ftp As...
  15. M

    sorting an array

    I was able to use that in my code. It works exactly how I need it to. Thanks
  16. M

    printing a string of text

    Public Sub PrintFormatText(ByVal PrintText As String, ByVal Handle As Long, ByVal cpl As Byte) Dim ts As String Dim ln As Integer Dim vr As Array Dim i As Integer vr = Split(PrintText, vbCrLf) For i = LBound(vr) To UBound(vr) ts =...
  17. M

    sorting an array

    I am writing a for/next loop to go through an ArrayList. Each object in the array contain a FromDate, ToDate, and Location. I need to sort out each object first by ToDate, in ascending order, then by FromDate, in ascending order. The kicker is that if both dates match in an object, that when...
  18. M

    emailing in .net

    Thank you for that. It does help a lot.
  19. M

    emailing in .net

    I am a vb newbie and I have a question concerning sending an email in an application. The application requires that I gather certain info from a db, sort it and then email it. I need to know what are all the steps in setting up this email server. Namespaces, etc. And if you know where I can...
Back
Top