austin350s10
Active Member
- Joined
- Jul 30, 2010
- Messages
- 321
I am using the following line of code to save a document as a PDF:
I works perfect if the user have a printer installed but I just found out if the user does not have a printer installed I get the following error code:
Is there any way around this?
Code:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Documents and Settings\" & Application.UserName & "\Local Settings\Temp\QAM-Report.pdf", Quality:=xlQualityMinimum, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
False
I works perfect if the user have a printer installed but I just found out if the user does not have a printer installed I get the following error code:
Is there any way around this?