Re: ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- From: "Sascha Trowitzsch" <ng@xxxxxxxxxxxx>
- Date: Tue, 20 Mar 2007 19:37:18 +0100
Hi,
"Olaf Rabbachin" <Olaf_NoSpam@xxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23LDeV9uaHHA.2436@xxxxxxxxxxxxxxxxxxxxxxx
Huhu!
Ich habe aktuell Probleme mit dem PDF-Converter von Stephen Lebans.
Während
das Ding in einer regulären Access2003-Umgebung anstandslos läuft,
funktioniert es von einer Access2003 Runtime Version aus nicht (diverse
Rechner). Der "Patch", den Karsten Pries mal bereitgestellt hat, ist
eingebaut. Die Registry besagt, dass das Snapshot Format installiert zu
sein scheint (Wert für HKLM\SOFTWARE\Microsoft\Office\11.0\Access\Report
Formats/Snapshot Format = "snp,,1,Snapshot Format (*.snp),0").
Beim Aufruf kommt dann aber immer der Fehler #2282: "Das Format, in dem
Sie
das aktuelle Objekt auszugeben versuchen, ist nicht verfügbar".
Hat jemand eine Idee, woran's liegen könnte?
Das legt daran, dass MS dauernd die String-Konstante verändert hat. Und zwar
nicht nur zwischen den Versionen, sondern auch noch etwa zwischen den
Service Packs für A2003. Zu allem Überflüss gibt es dann anscheinend noch
unterschiedlich fültige String je nach Sprachversion.
Deshalb setze ich eine Hilfsroutine wie folgt ein:
'Hilfsroutine wegen Bug der String-Konstanten acFormatSNP
Function OutputSnapshot(Reportname As String, _
OutputFile As String, _
Optional Autostart As Boolean) As Boolean
Dim i As Long
Dim arrFormats As Variant
Dim bOK As Boolean
arrFormats = Array("Snapshot Format", _
"Snapshot Format (*.snp)", _
"Snapshot-Format (*.snp)")
On Error Resume Next
For i = 0 To 2
Err.Clear
DoCmd.OutputTo acOutputReport, _
Reportname, _
arrFormats(i), _
OutputFile, Autostart
If Err.Number = 0 Then
Debug.Print arrFormats(i)
bOK = True
Exit For
End If
Next i
OutputSnapshot = bOK
End Function
Ciao, Sascha
.
- Follow-Ups:
- Re: ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- From: Olaf Rabbachin
- Re: ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- References:
- ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- From: Olaf Rabbachin
- ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- Prev by Date: Re: Doppelte Worte anzeigen
- Next by Date: Re: Doppelte Worte anzeigen
- Previous by thread: Re: ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- Next by thread: Re: ConvertReportToPDF (Lebans) und die Access 2003 Runtime ...
- Index(es):
Relevant Pages
|