Hi Veli,
Check out this MSDN article for controlling printer settings:
http://msdn.microsoft.com/library/d...ry/en-us/dnacc2k2/html/odc_acc10_printers.asp
This assumes that you are using Access 2002 or later. Note: You *might* be
able to retrieve a version of this article in Turkish by changing the "en-us"
portion of the URL shown above to whatever the corresponding letters would be
for Turkish. I really don't know about this for sure though.
and I want to be able to change the name of the document just before the
printing job ...
I've never worked with printing to PDF files, but one can programmatically
print snapshot (*.snp) files with different filenames. You do this by setting
the report caption programmatically. The snapshot file picks up the caption
as part of it's filename. Here is an example, using the Report's Activate
event procedure, to set the caption programmatically:
Private Sub Report_Activate()
On Error GoTo ProcError
' The caption is used for the Snapshot filename (caption.snp)
Me.Caption = ServiceRequested & " request for " & EquipID
ExitProc:
Exit Sub
ProcError:
MsgBox "Error: " & Err.Number & ". " & Err.Description, , _
"Error in Report_Activate event procedure..."
Resume ExitProc
End Sub
In the code shown above, ServiceRequested and EquipID are two fields that
are included in the report's recordsource.
Good Luck!
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
:
Hi Tom,
I do not have a problem with the pdf side, I want to be able to choose
the printer to which I want to print, and I want to be able to change
the name of the document just before the printing job if I can on the
access side.
__________________________________________
Tom Wickerath wrote:
Hi Veli,
Check out the cute PDF printer utility:
http://www.cutepdf.com/Products/CutePDF/writer.asp
Also, here is a more complete listing of other possibilities:
http://www.granite.ab.ca/access/pdffiles.htm
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
:
Hi all,
I need a button on a form to print to AdobePdf printer, and give the
report the name [ProductID] pdf.
ProductID is alphanumeric and has the form AA-00A-000-00.
I can preview this report, and then rename and print it, but I want it
automatic.
Thanks for answers.