G
Guest
Hi,
I have a table with all reports in it.
For each report there is a field for the number of copies, resource, printer
name,etc.
For setting this options, I use this code.
DoCmd.OpenReport [c_reportnaam], 1
'2=preview, 1=designview, 3=normal
Set rpt = Reports(c_reportnaam)
Set dm = New DevMode
Set dm.Object = rpt
dm.DefaultSource = vpapersource
dm.Copies = vcopies
DoCmd.Close acReport, [c_reportnaam], acSaveYes
This works fine with the developer or complete version of access.
Only our production environment uses the runtime version. And then I noticed
the design view isn't working.
I would like to create this:
Define the report
set the options
print the report
Is there a way to set these options for a report in the runtime version?
I have a table with all reports in it.
For each report there is a field for the number of copies, resource, printer
name,etc.
For setting this options, I use this code.
DoCmd.OpenReport [c_reportnaam], 1
'2=preview, 1=designview, 3=normal
Set rpt = Reports(c_reportnaam)
Set dm = New DevMode
Set dm.Object = rpt
dm.DefaultSource = vpapersource
dm.Copies = vcopies
DoCmd.Close acReport, [c_reportnaam], acSaveYes
This works fine with the developer or complete version of access.
Only our production environment uses the runtime version. And then I noticed
the design view isn't working.
I would like to create this:
Define the report
set the options
print the report
Is there a way to set these options for a report in the runtime version?