Results 1 to 3 of 3

Thread: Wokawidget Pdf Print help

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    83

    Wokawidget Pdf Print help

    I am using Wokawidget printtopdf code.The code is great but I am having a bit of a problem.I can't get the text to break. I attatched a picture of how the text is now. The new line never starts in the pdf.The code is:
    VB Code:
    1. Dim clPDF As New clsPDFCreator
    2.   Dim strFile As String
    3.   Dim i As Single
    4.  
    5.   a = InputBox$("Please Specify the Path of The PDF File ", "Path For PDF", , 7000, 4500)
    6.   strFile = a & ".pdf"
    7.  
    8.   With clPDF
    9.     .ScaleMode = pdfCentimeter
    10.     .PaperSize = pdfA4
    11.     .Margin = 0
    12.     .Orientation = pdfPortrait
    13.    
    14.     .InitPDFFile strFile
    15.    
    16.  
    17.     .LoadFont "Fnt1", "Times New Roman"
    18.     .LoadFont "Fnt2", "Arial", pdfItalic
    19.     .LoadFont "Fnt3", "Courier New"
    20.     .LoadFontStandard "Fnt4", "Courier New", pdfBoldItalic
    21.    
    22.   .StartObject "Item1", pdfOddPages
    23.       .SetColorFill -240
    24.       .SetTextHorizontalScaling 120
    25.      
    26.       .SetColorFill 0
    27.     .EndObject
    28.        .StartPage
    29.     For x = 0 To frmstats.List1.ListCount - 1
    30.   B = B & frmstats.List1.List(x) & vbCrLf
    31.     Next x
    32.    .DrawText 10.5, 27, B & vbCrLf, "Fnt1", 12, pdfCenter & vbCrLf
    33.  
    34.  
    35.      
    36.       .SetTextHorizontalScaling 70
    37.       .SetTextHorizontalScaling 100
    38.       .SetCharSpacing 10
    39.      
    40.       .SetWordSpacing 60
    41.       .EndPage
    42. .ClosePDFFile
    43.   End With

    Thanks a bunch for wonderful code
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width