User Profile

Collapse

Profile Sidebar

Collapse
GGSoft
GGSoft
Last Activity: Nov 7 '08, 12:50 PM
Joined: Jul 29 '08
Location: In Georgia (Caucauses)
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • GGSoft
    replied to HasmorePages
    in .NET
    Instead of 45 Record as disscussed above I Use 60 record per page.
    See more | Go to post

    Leave a comment:


  • GGSoft
    replied to HasmorePages
    in .NET
    At least I have found solution Myself. Here is code:
    This simple solution will help to many people.

    Main logik is that, When Use e.HasMorePages = True, procedure Runs again from beginning. Use static variable to hold page number.

    Other you will understand without any problem.

    Code:
    Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)
    ...
    See more | Go to post
    Last edited by Curtis Rutland; Aug 18 '08, 02:54 PM. Reason: Added Code Tags - Please use the # button

    Leave a comment:


  • GGSoft
    started a topic HasmorePages
    in .NET

    HasmorePages

    Please Can't understand how to use HasMorepages. I spent a lot of time on this task. but I have no result.
    For examle I want to print every 45 record on each new page.
    Please Rewrite the following code in correct manner.
    I dont know where to place HasmorePages=tr ue and HasmorePages=fa lse
    Code:
    Private Sub Pr_PrintReg(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)
    ...
    See more | Go to post
    Last edited by Curtis Rutland; Aug 18 '08, 02:54 PM. Reason: Added Code Tags - Please use the # button

  • You Must first create Class with this method. and then use it forever.
    for example

    public shared sub SaveToFile(byva l arr as integer(), byval Filename as string )
    .....
    Here is your code
    ....
    end sub


    I think you can do it. if not I will help.
    See more | Go to post

    Leave a comment:


  • GGSoft
    replied to DB BAckup
    You must first remove device if its olready exists using system stored procedure exec sp_dropdevice 'YourDeviceName '...
    See more | Go to post

    Leave a comment:


  • GGSoft
    replied to DB BAckup
    This Example in detail explains how to do it?



    If Not System.IO.Direc tory.Exists("C: \backup") Then System.IO.Direc tory.CreateDire ctory("c:\backu p")
    Dim backupFileName As String = "c:\Backup\Back upOfSameurneo_" + Today.ToShortDa teString.Replac e("/", ".") + ".bak"
    Dim Texts(2) As String
    Texts(0) = "use master;...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...