Search:

Type: Posts; User: Ken B

Page 1 of 6 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    9
    Views
    989

    Re: Converting HTML File to PDF

    http://www.vbpdf.com/files/cSharpPDF.zip

    I only recreated the "Hello World" example in c# from the vbPDF code. This will give you an example of the process for creating a report. I will start to...
  2. Replies
    9
    Views
    989

    Re: Converting HTML File to PDF

    I converted to c# for a project I'm working on. If you want, I will put the code up tomorrow. There are no examples or documentation for c#, but you should be able to figure it out if you understand...
  3. Replies
    9
    Views
    989

    Re: Converting HTML File to PDF

    You can create pdf files using just vb or c#. Check out http://www.vbpdf.com/ for vb2005 code.
  4. Replies
    35
    Views
    3,024

    Re: save JPG into file

    This will read a image into a file, with some format information before it. The image itself will be inside of the <image></image> tags. I have no idea if any of these tags are valid xml tags.

    ...
  5. Replies
    35
    Views
    3,024

    Re: save JPG into file

    ???

    What size are you talking about? File size or image width and Height?

    File size of an image:


    Dim fs As FileStream = New FileStream(ImageFileName, FileMode.Open)
    ReDim...
  6. Replies
    35
    Views
    3,024

    Re: save JPG into file

    To you need to write the image size? You should be able to determine it by subtracting the starting position of </MainInterface> from the ending position of <MainInterface>

    Reading it in, I'm not...
  7. Replies
    35
    Views
    3,024

    Re: save JPG into file

    Hey, it was 6:55am, I was still working on my first cup of Coffee.

    You will of course need to write it.

    This should work. I took this code from different parts of a pdf creator I wrote last...
  8. Replies
    35
    Views
    3,024

    Re: save JPG into file

    This code should insert an image into a file.



    Dim retByte() As Byte
    If Not File.Exists(ImageFileName) Then Return False

    Try
    Dim fs As FileStream = New...
  9. Replies
    2
    Views
    646

    Re: [2.0] Mutliple lines of text in clipboard?

    What's "text\r\n", if its TextDataFormat, you got the order wrong. Try:


    Clipboard.SetText(TextDataFormat.Text, "text\r\n");
  10. Replies
    2
    Views
    2,518

    Re: How to detect null Values in datagridview?

    I think this is a better check.


    if (dgvResults.Rows[e.RowIndex].Cells[e.ColumnIndex].Value is DBNull)
  11. Replies
    2
    Views
    2,518

    Re: How to detect null Values in datagridview?

    Here's one way. There may be a better one:



    if (dgvResults.Rows[intCurrentRow].Cells[intCurrentCol].Value.ToString().Trim() == string.Empty)
    MessageBox.Show("Cell is empty");
  12. Re: [2.0] Selecting Control based on tabIndex value

    Thanks.

    I will use an if statement.
  13. [RESOLVED] [2.0] Selecting Control based on tabIndex value

    Is there a way to make a control active based on its tabIndex without using an if or switch statement?
  14. Replies
    10
    Views
    2,793

    Re: Get last line in a TextBox

    This will get the last line of a text box. lineCount - 1 controls what line of the textbox is returned.



    [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint =...
  15. Replies
    10
    Views
    4,765

    Re: [RESOLVED] 403 Forbidden error

    Instead of modifying the security file, I added a .htaccess file that redirect the error to a page that explains the problem. What I would like to do is display the original string that trigger the...
  16. Replies
    10
    Views
    4,765

    Re: 403 Forbidden error

    Make sense. If I just pass "selectmen from" I get the same forbidden error.

    Thanks.
  17. Replies
    10
    Views
    4,765

    Re: 403 Forbidden error

    I do have access to the log. You were right, the server thinks its a SQL injection.

    Here's the error:

    [Fri Apr 11 08:07:06 2008] [error] [client 68.172.117.26] ModSecurity: [file...
  18. Replies
    10
    Views
    4,765

    Re: 403 Forbidden error

    I don't have access to the error log.
  19. Replies
    10
    Views
    4,765

    Re: 403 Forbidden error

    I changed get.php to



    <?php
    echo $_SERVER['REQUEST_METHOD'] . "<br/>";
    echo $_POST['comments'];
    ?>

    I get the same error. If I change the last character in the string to something...
  20. Replies
    10
    Views
    4,765

    [RESOLVED] 403 Forbidden error

    I'm getting the following error

    Forbidden

    You don't have permission to access /archive/code/get.php on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an...
  21. Thread: Encrypt KEY

    by Ken B
    Replies
    14
    Views
    3,340

    Example with

    Everything here is from Laurentiu Cristofor's blog

    http://blogs.msdn.com/lcris/default.aspx

    This is a project that I wrote to teach myself how to use SYMMETRIC KEY, there are a few problems...
  22. Thread: Encrypt KEY

    by Ken B
    Replies
    14
    Views
    3,340

    Re: Encrypt KEY

    If you are using vb2005 and sql server 2005, I can provide you with a sample project that will show you how to use SYMMETRIC KEY to store a password and display it unencrypted.
  23. Thread: Encrypt KEY

    by Ken B
    Replies
    14
    Views
    3,340

    Re: Encrypt KEY

    Are you still having problems with this?
  24. Replies
    13
    Views
    1,412

    Re: Encript password to access to SQL server

    If you are using 2005, look at symmetric keys.

    Check out Laurentiu Cristofor's blog for examples.
    http://blogs.msdn.com/lcris/default.aspx
    Here's a good starting point "SQL Server 2005: using...
  25. Thread: click on picture

    by Ken B
    Replies
    7
    Views
    656

    Re: click on picture

    echo vs print.

    http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
  26. Replies
    7
    Views
    679

    Re: [RESOLVED] Get Full URL String

    When you search phpinfo(), just search for REQUEST_URI. When I run it, REQUEST_URI is displayed with double qoutes around it.
  27. Replies
    7
    Views
    679

    Re: [RESOLVED] Get Full URL String

    try:


    echo $_SERVER['REQUEST_URI'];
  28. Re: Programatically detect if SQL Table has a Primary key.

    The above code is for 2005. I have no idea if it will work with 2000.
  29. Re: Programatically detect if SQL Table has a Primary key.

    Get the name of the primary key for a table

    SELECT constraint_name FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE constraint_type = 'primary key' AND table_name = 't_ImageFiles'

    Get the...
  30. Re: Programatically detect if SQL Table has a Primary key.

    What database are you using?
  31. Replies
    1
    Views
    2,717

    Re: how to import excel sheet to phpmyadmin

    I was having the same problem.

    When I renamed the data file from data.txt to data.sql it worked.

    Try it.
  32. Replies
    6
    Views
    539

    Re: sql 2005 express security

    Check out Laurentiu Cristofors security blog for sql Server 2005.

    http://blogs.msdn.com/lcris/archive/2005/06/09/427523.aspx
  33. Replies
    5
    Views
    611

    Re: Discover Primary Key

    What database are you using?

    If you are using sql Server 2005, the following will return the columns that makes up a table primary keys.

    SELECT column_name FROM...
  34. Re: [RESOLVED] Retrieving three author names, two may be empty

    You really don't need to have an id field. If you make the authorBook table primary key both bookid and authorid .



    bookid - references book id
    authorid - references author id
  35. Replies
    5
    Views
    827

    Re: [2005] Image Mode

    How about converting them to a format you can used?

    Try:



    Public Function ReCreateImage(ByVal ImageFileName As String, ByVal NewImageFileName As String, ByVal NewResolution As Single) As...
  36. Replies
    5
    Views
    827

    Re: [2005] Image Mode

    Look at the picture PixelFormat. Lookup PixelFormat enumeration in help for a list of image types.



    Public Structure ImageInformation

    Dim Extension As String
    Dim FileExist As...
  37. Thread: Datagridview

    by Ken B
    Replies
    3
    Views
    752

    Re: Datagridview

    Images are added via the dataGridView CellValueNeeded.



    Private Sub dgvResults_CellValueNeeded(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellValueEventArgs) Handles...
  38. Replies
    8
    Views
    1,771

    Re: [2005] FTP Delete

    Public Function DeleteFileOnFTPServer(ByVal FileToDelete As String, ByVal LoginName As String, ByVal Password As String) As Boolean

    If FileToDelete.Trim = String.Empty Then
    Return False...
  39. Replies
    7
    Views
    646

    Re: Username Database Help

    The first thing you need to do is created the actual database. You will need to read your isp help documentation to learn how to do this. Every isp is different. I use Apollo Hosting, under my old...
  40. Replies
    7
    Views
    646

    Re: Username Database Help

    What kind of application are you programming and what are you going to use?

    vb net? c#? php?

    As for your database, you will first need to know what tools your isp provides for you to create...
Results 1 to 40 of 235
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width