Results 1 to 4 of 4

Thread: Printing problems

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598

    Printing problems

    Hi,

    I am having a view problems with printing, When I hit command5 I get the word doc saying blank.doc is read only which it is not, also if I choose to open this doc it will be displayed when I have set visible to false, then when it prints it out I have 2 docs 1 saying "hello" in the specified positions and saying spooling which takes time, the other just the blank doc "blank.doc".

    what I want is to read in blank.doc and put the text "hello" in a certain poistion without showing the doc.

    Code:
    Private Sub Command5_Click()
    Set objWordApp = CreateObject("Word.Application")
    objWordApp.Visible = False
    
    Set objDestDoc = objWordApp.Documents.Add
     Set objWordDoc = objWordApp.Documents.Open("C:\Documents and Settings\loftty\Desktop\VB6\testdelete\testlistnew\blank.doc")
      
    objDestDoc.PrintOut
    objDestDoc.Close SaveChanges:=False
    Set objDestDoc = Nothing
    Set objWordDoc = Nothing
    End Sub
    loftty

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    Check your private messages

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598
    I have replied in yr pm

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    england
    Posts
    598
    Anyway can anyone help me with the ist question?

    Thanks

    Loftty

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