Results 1 to 3 of 3

Thread: Printing covers !

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    18
    I'm working on a program to make your own cd covers
    For the back cover I have to print rotated text

    I've done it like this :

    Option Explicit

    Private Const LF_FACESIZE = 32

    Private Type LOGFONT
    lfHeight As Long
    lfWidth As Long
    lfEscapement As Long
    lfOrientation As Long
    lfWeight As Long
    lfItalic As Byte
    lfUnderline As Byte
    lfStrikeOut As Byte
    lfCharSet As Byte
    lfOutPrecision As Byte
    lfClipPrecision As Byte
    lfQuality As Byte
    lfPitchAndFamily As Byte
    lfFaceName As String * LF_FACESIZE
    End Type

    Private Type DOCINFO
    cbSize As Long
    lpszDocName As String
    lpszOutput As String
    lpszDatatype As String
    fwType As Long
    End Type

    Private Declare Function CreateFontIndirect Lib "gdi32" Alias _
    "CreateFontIndirectA" (lpLogFont As LOGFONT) As Long

    Private Declare Function SelectObject Lib "gdi32" _
    (ByVal hdc As Long, ByVal hObject As Long) As Long

    Private Declare Function DeleteObject Lib "gdi32" _
    (ByVal hObject As Long) As Long

    Private Declare Function CreateDC Lib "gdi32" Alias "CreateDCA" _
    (ByVal lpDriverName As String, ByVal lpDeviceName As String, _
    ByVal lpOutput As Long, ByVal lpInitData As Long) As Long

    Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) _
    As Long

    Private Declare Function TextOut Lib "gdi32" Alias "TextOutA" _
    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, _
    ByVal lpString As String, ByVal nCount As Long) As Long ' or Boolean

    Private Declare Function StartDoc Lib "gdi32" Alias "StartDocA" _
    (ByVal hdc As Long, lpdi As DOCINFO) As Long

    Private Declare Function EndDoc Lib "gdi32" (ByVal hdc As Long) _
    As Long

    Private Declare Function StartPage Lib "gdi32" (ByVal hdc As Long) _
    As Long

    Private Declare Function EndPage Lib "gdi32" (ByVal hdc As Long) _
    As Long

    Const DESIREDFONTSIZE = 12

    using this I have succeeded in printing some rotated text.. But here's my problem! It only works with a default font! I have not yet succeeded in changing the font of the rotated text could somebody help me ?

    Thanks !! Y'all have been helpful before !!
    Da illest G in da room

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Posts
    208
    put this before you make the rotative text ..
    Code:
    Dim OldFont as string
    OldFont = Me.Font
    Me.Font="Arial"
    'Your Rotative banner code here
    Me.Font = OldFont

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    18
    I'm sorry to tell you that it doesn't work
    Da illest G in da room

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