User Profile
Collapse
-
Instead of 45 Record as disscussed above I Use 60 record per page. -
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)
Last edited by Curtis Rutland; Aug 18 '08, 02:54 PM. Reason: Added Code Tags - Please use the # buttonLeave a comment:
-
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)
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.Leave a comment:
-
You must first remove device if its olready exists using system stored procedure exec sp_dropdevice 'YourDeviceName '...Leave a comment:
-
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;...Leave a comment:
No activity results to display
Show More
Leave a comment: