Predmet:Re: Problem sa kodom za printanje
Probao sam svašta, ali radi tek ako se Report otvori u Preview modu.
Na Reporu On Open:
Me.Caption = "Otpremnica_" & Forms!frmOtpremnica!OrderID
a ispod dugmeta za printanje:
Dim strAdresa As String
Dim stDocName As String
SetPrt (3) 'doPDF printer iz tablise Stampaci
stDocName = "rptOtpremnica"
DoCmd.OpenReport stDocName, acViewPreview
DoCmd.OpenReport stDocName, acViewNormal
Pozdrav