Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14

    Angry Printing

    I have created a database. On the Welcome form the user selects a printer from a combobox. The combo box contains a list of printers available on the users PC. That part works fine; however when I select Dymo on my PC the label prints out perfectly on 1 label. When I go to a different PC and select Dymo to print it prints bits and pieces of the same data over 18 labels and not the 1. I have searched high and low for an answer. The report is set up to print on Default Printer. The model of Dymo is the only thing that might be different on the users PC (For instance Dymo Turbo 400 vs. Dymo Turbo 300). Any help would be greatly appreciated. Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    If layout is different on the 2 printers then you may have to design a report to print specifically to Turbo400, and 1 to Turbo300 (and NOT to default printer)

  3. #3
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    Quote Originally Posted by ranman256 View Post
    If layout is different on the 2 printers then you may have to design a report to print specifically to Turbo400, and 1 to Turbo300 (and NOT to default printer)
    Even though the labels are the exact same size and name? Is there any work around? The issue will be if I do not know what printer they have. There will be over 300 users.

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,700
    Have you tried it with both of the printers on your PC, attached one at a time, to see what happens there? Maybe you can solve the problem by investigating that scenario.

  5. #5
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Could you set the report to print to those specific printers instead of default. Go to Page setup, Page tab, Use Specific Printer. On why it is printing differently, I have used those printers and same thing, had 2 PCs trying to use it and sometimes it would just work different on each PC.

  6. #6
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    The problem is not everyone has a Dymo some have a Zebra and some need to create a PDF to print so I have created all those reports based on what printer is selected in the combobox of available printers on their pc. In my area alone I have users with 3 different models of Dymo printers. If I set it to a Specific Printer I get that message "Document was previously formatted for the printer ....". This is driving me nuts...this is the last piece I need to complete this project.

  7. #7
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    Ok it seems to change the paper size when you go to a different PC. Is it possible to program the paper size for the report so it is I don't have to change it manually on every single PC?

  8. #8
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Paper size should be set in the Page setup of the report. Check to make sure they are correct there. Not sure if you can program paper size on a report when it runs.

  9. #9
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    Will the paper size change if it is on a different pc or will it stick to the size I select on my PC?

  10. #10
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Should be saved in the Access program so should be same no matter what PC I would think.

  11. #11
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    Ok I tried and because the user has to select the Printer from the combobox it does not save the Paper Size. I need it to if the user selects Dymo to default to the "Shipping Label" Page size before printing. Like I said I can do it manually but then when I roll this out I would have to update 300+ PC's.

  12. #12
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,700
    Code:
    Screen.ActiveReport.Printer = application.Printers(strPrinter)
    You can do this after the report is opened...
    Initialize strPrinter with the printer name.
    You might have to create a table with all 300 users and define there which printer they should use.
    You probably already have a username login table. You could put the default printer there.

    Thinking more...
    After a user logs in, you could show a form to let the user select the default dymo printer to use from the list of his printers.
    After the printer name is selected and stored, you don't show that form again.
    Then you use that printer name as in the code above, via a dlookup.
    Last edited by davegri; 11-15-2017 at 04:45 PM. Reason: more thoughts

  13. #13
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    I gave this a try and everything worked until I logged on to an alternate PC. The label name which Access assigned a number to changed. I was hoping I could just put the label name from Dymo in .PaperSize="30256 Shipping", but that also didn't work. I have searched high and low on this matter and just cannot find anything on this or why the paper size changes numbers from PC to PC even though it is the same label.

    Code:
    Private Sub Form_Current()
    With Forms!frmboxlabeldymo.Printer
      
     .TopMargin = 57.6
     .BottomMargin = 80.64
     .LeftMargin = 335.52
     .RightMargin = 86.4
     .PaperSize = 224 'This works on my PC, but the number seems to change when I logon to an alternate PC
     End With
    DoCmd.PrintOut
    End Sub

  14. #14
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Maybe try using a variable?

    Private Sub Form_Current()

    Dim vPaperSize as Integer
    vPaperSize = 224

    With Forms!frmboxlabeldymo.Printer
    .TopMargin = 57.6
    .BottomMargin = 80.64
    .LeftMargin = 335.52
    .RightMargin = 86.4
    .PaperSize = vPaperSize
    End With
    DoCmd.PrintOut
    End Sub

  15. #15
    DBaker7777 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    14
    Worked on my PC, but when I went to another PC it printed 4 labels instead of 1 and did not print on the correct Dymo Label type. The papersize of the label on the PC I just tried was 221, but remained 224 on mine.

    Quote Originally Posted by Bulzie View Post
    Maybe try using a variable?

    Private Sub Form_Current()

    Dim vPaperSize as Integer
    vPaperSize = 224

    With Forms!frmboxlabeldymo.Printer
    .TopMargin = 57.6
    .BottomMargin = 80.64
    .LeftMargin = 335.52
    .RightMargin = 86.4
    .PaperSize = vPaperSize
    End With
    DoCmd.PrintOut
    End Sub

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Printing a form?
    By PaintTheMoonRed in forum Forms
    Replies: 4
    Last Post: 03-28-2014, 11:49 AM
  2. HELP With printing!!
    By mgillespie21234 in forum Reports
    Replies: 9
    Last Post: 05-14-2013, 11:28 AM
  3. Printing
    By mrkaye in forum Reports
    Replies: 12
    Last Post: 09-11-2011, 07:20 PM
  4. Printing!!!!
    By Kipster1203 in forum Access
    Replies: 7
    Last Post: 05-14-2010, 08:58 AM
  5. Help with my printing
    By mattwill2001 in forum Queries
    Replies: 4
    Last Post: 08-17-2009, 01:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums