🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych.msaccess
Article #137607

Re: Akces 2003 - odświżenie okna Akcesa.

#137607
From: Jacek
Date: Mon, 14 May 2018 09:46
61 lines
2864 bytes
Dnia Mon, 14 May 2018 10:00:04 +0200, Zbigniew Bratko napisał(a):

> W dniu 2018-05-11 o 15:06, Jacek pisze:
>> Dnia Tue, 24 Apr 2018 18:21:16 +0200, Zbigniew Bratko napisał(a):
>> 
> 
> 
> [...]
> 
>> Mam jeszcze jedną prośbę.
>> 
>> Sciągnąłem z sieci procedure do drukowania raportów z Akcesa 2003 do PDF,
>> za pomocą 'PDF Creatora'.
>> 
>> Oto ona:
>> 
>> Sub DrukujPDF2(Raport As String, Sc As String, Plik As String)
>> 'Author       : Ken Puls ( www.excelguru.ca)
>> 'Macro Purpose: Print to PDF file using PDFCreator
>> '   (Download from http://sourceforge.net/projects/pdfcreator/ )
>> '   Designed for early bind, set reference to PDFCreator
> 
> [...]
> 
>> End Sub
>> 
>> Potrzebuję ją tak przerobić, żeby móc wywołać wiele razy z kolejnymi
>> raportami.
>> Pomożesz, proszę?
> 
> [...]
> 
> 
> A takie coś nie pójdzie ?
> 
> '___________________________________________________________________
> Private Sub Polecenie0_Click()
>    Dim vArray As Variant
>    Dim i As Long
>    vArray = Array("nazwaRaportu_1", "C:\tmp\", "Raport_1.pdf", _
>                   "nazwaRaportu_2", "C:\tmp\", "Raport_2.pdf", _
>                   "nazwaRaportu_3", "C:\tmp\", "Raport_3.pdf")
> 
>    For i = LBound(vArray) To UBound(vArray) Step 3
>      Call DrukujPDF2(vArray(i), vArray(i + 1), vArray(i + 2))
>    Next
> 
> End Sub
> 
> Sprawdź, czy w ścieżce jest potrzebny backslash na końcu.
> Daj znać, czy się udało.

Hej.

No właśnie nie.
Trzeba przerobić DrukujPDF tak, żeby w obiekcie 'pdfjob' metoda
.cOption("AutosaveFilename") = sPDFName banglała.

---
Ta wiadomość została sprawdzona na obecność wirusów przez oprogramowanie antywirusowe Avast.
https://www.avast.com/antivirus
Technical Details
Message-ID: <8ahqbdgcl69l.grdku9c7aw10.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <hy1v5rsi1u1d.1szbxxptm019r$.dlg@40tude.net> <pbnlhv$sft$1@node2.news.atman.pl> <mk9q8t75k188.1jevbtij4ue3o$.dlg@40tude.net> <pdbfm6$t00$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: Jacek <ala@ola.pl>
Subject: Re: Akces 2003 - odświżenie okna Akcesa.
Newsgroups: pl.comp.bazy-danych.msaccess
User-Agent: 40tude_Dialog/2.0.15.1pl
MIME-Version: 1.0
References: <hy1v5rsi1u1d.1szbxxptm019r$.dlg@40tude.net> <pbnlhv$sft$1@node2.news.atman.pl> <mk9q8t75k188.1jevbtij4ue3o$.dlg@40tude.net> <pdbfm6$t00$1@node2.news.atman.pl>
Date: Mon, 14 May 2018 11:46:11 +0200
Message-ID: <8ahqbdgcl69l.grdku9c7aw10.dlg@40tude.net>
X-Antivirus: Avast (VPS 180514-0, 2018-05-14), Outbound message
X-Antivirus-Status: Clean
Lines: 62
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 178.36.223.121
X-Trace: 1526291178 unt-rea-a-01.news.neostrada.pl 674 178.36.223.121:23910
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit