Click here to Skip to main content
16,005,376 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAccessing the "this" pointer Pin
Eric Burns22-Sep-08 10:18
Eric Burns22-Sep-08 10:18 
AnswerRe: Accessing the "this" pointer Pin
Adam Maras22-Sep-08 10:30
Adam Maras22-Sep-08 10:30 
AnswerRe: Accessing the "this" pointer Pin
Paul Conrad22-Sep-08 14:25
professionalPaul Conrad22-Sep-08 14:25 
QuestionIs it possible to retrieve the GUID for a .dll based on the name only? Pin
Jon_Boy22-Sep-08 5:00
Jon_Boy22-Sep-08 5:00 
AnswerRe: Is it possible to retrieve the GUID for a .dll based on the name only? Pin
Jon_Boy22-Sep-08 8:28
Jon_Boy22-Sep-08 8:28 
GeneralRe: Is it possible to retrieve the GUID for a .dll based on the name only? Pin
Dave Kreskowiak22-Sep-08 8:52
mveDave Kreskowiak22-Sep-08 8:52 
GeneralRe: Is it possible to retrieve the GUID for a .dll based on the name only? Pin
Jon_Boy22-Sep-08 13:37
Jon_Boy22-Sep-08 13:37 
QuestionPrinting text file in vb.net - Formatting issue Pin
kedarrkulkarni22-Sep-08 2:36
kedarrkulkarni22-Sep-08 2:36 
Hi,
i create a text file in my code and i want to print the now. origianl file looks like

/********* File Starts Here ***************************




9/22/2008






Name of the customer and details



10010



/********* File Ends Here ***************************


But when i print this file in my project using following code...

Dim pd As New PrintDocument
                        Dim ps As new PageSettings
                        ps.Landscape = False
                        ps.Margins.Top = 0.116
                        ps.Margins.Bottom = 0.116
                        ps.Margins.Left = 0.116
                        ps.Margins.Right = 0.116
                        ps.PaperSize = New System.Drawing.Printing.PaperSize("A4", 210, 297)
                        pd.DefaultPageSettings = ps

                        AddHandler pd.PrintPage, AddressOf pd_PrintPage


and using drawstring function of Graphics as ,

e.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, _
           yPos, New StringFormat)


the resulting printout looks like...

/********* File Starts Here ***************************



9/22/2008






Name of the customer and details



10010


/********* File Ends Here ***************************

problem is the first line gets overlapped with second one. i.e date is overlapping "Name of the customer and details" line. which is not actual case.
(so, whole formatting of file is getting lost when i m printing in project but manual file print works fine).
where i am missing something. or is it something to do with saize of paper?
AnswerRe: Printing text file in vb.net - Formatting issue Pin
kedarrkulkarni22-Sep-08 2:40
kedarrkulkarni22-Sep-08 2:40 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
Thomas Stockwell22-Sep-08 6:12
professionalThomas Stockwell22-Sep-08 6:12 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
kedarrkulkarni22-Sep-08 19:45
kedarrkulkarni22-Sep-08 19:45 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
kedarrkulkarni23-Sep-08 1:35
kedarrkulkarni23-Sep-08 1:35 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
Dave Kreskowiak23-Sep-08 1:58
mveDave Kreskowiak23-Sep-08 1:58 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
kedarrkulkarni23-Sep-08 3:31
kedarrkulkarni23-Sep-08 3:31 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
Dave Kreskowiak23-Sep-08 6:56
mveDave Kreskowiak23-Sep-08 6:56 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
kedarrkulkarni23-Sep-08 20:51
kedarrkulkarni23-Sep-08 20:51 
GeneralRe: Printing text file in vb.net - Formatting issue Pin
Dave Kreskowiak24-Sep-08 1:43
mveDave Kreskowiak24-Sep-08 1:43 
RantRe: Printing text file in vb.net - Formatting issue Pin
Thomas Stockwell23-Sep-08 2:01
professionalThomas Stockwell23-Sep-08 2:01 
Questionregarding MDI forms Pin
marygoldg21-Sep-08 23:46
marygoldg21-Sep-08 23:46 
AnswerRe: regarding MDI forms Pin
Rupesh Kumar Swami22-Sep-08 0:09
Rupesh Kumar Swami22-Sep-08 0:09 
AnswerRe: regarding MDI forms Pin
pdnet22-Sep-08 0:16
pdnet22-Sep-08 0:16 
AnswerRe: regarding MDI forms Pin
Dave Kreskowiak22-Sep-08 8:44
mveDave Kreskowiak22-Sep-08 8:44 
GeneralRe: regarding MDI forms Pin
marygoldg22-Sep-08 19:55
marygoldg22-Sep-08 19:55 
GeneralRe: regarding MDI forms Pin
Dave Kreskowiak23-Sep-08 1:55
mveDave Kreskowiak23-Sep-08 1:55 
QuestionSaving & Retrieving An Image Pin
Member 367504721-Sep-08 23:00
Member 367504721-Sep-08 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.