Results 1 to 4 of 4

Thread: How to print web datagrid in VB.NET

  1. #1
    Join Date
    Apr 2008
    Posts
    264

    How to print web datagrid in VB.NET

    I have downloaded the program and to its source when i open it in visual studio, it becomes very confusing i just wanted to print the Contents of the DataGrid in VB.NET this is to implement the code but I am not able to write a code and I am also new to VB & VB.NET so please Help me. How should i do that?

  2. #2
    Join Date
    Jan 2009
    Posts
    150

    Re: How to print web datagrid in VB.NET

    Put an <asp : DataGrid> tag inside the tag does the trick. Here are the steps involved. In order to print the current page, I used a printer friendly version of the data that needed to be displayed. Write a JavaScript function which takes care of printing the content from <div> tag. When you get the PDF and hit print button on PDF viewer.

  3. #3
    Join Date
    Feb 2009
    Posts
    117

    Re: How to print web datagrid in VB.NET

    However, as the columns in the page were increasing to any limit, I decided to recursively create the table, then bind the datagrid to the data retrieved and furthermore render the controls that needed to be displayed. if you have done everything mentioned in my post, have you tried pressing the print button? And checking that the printer has ink and paper?

  4. #4
    Join Date
    Feb 2008
    Posts
    180

    Re: How to print web datagrid in VB.NET

    Use DataControlField to extract the rows and get the latest one, where you LA locates, the columns in the page were increasing to any limit, I decided to recursively create the table, then bind the datagrid to the data retrieved and furthermore render the controls that needed to be displayed. This control is very simple to use: just set its DataGridView property and call the PageSetup, PrintPreview and Print methods in the appropriate menu or button click event handlers.

Similar Threads

  1. Replies: 3
    Last Post: 28-07-2010, 10:19 PM
  2. How to Export datagrid to pdf
    By Integer in forum Software Development
    Replies: 3
    Last Post: 17-03-2009, 07:58 PM
  3. How can I get the row count from DataGrid?
    By Shashikant in forum Software Development
    Replies: 4
    Last Post: 04-02-2009, 11:47 PM
  4. Add ComboBox in DataGrid in VB 6.0
    By Jateen in forum Software Development
    Replies: 3
    Last Post: 15-01-2009, 06:31 PM
  5. Print spooler hangs when trying to print from a shared print
    By Jisbomb in forum Windows XP Support
    Replies: 3
    Last Post: 27-07-2007, 10:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,166,084.45297 seconds with 17 queries