Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

This place just isn't big enough for all of us. We've got to find a way off this planet.


devel / comp.databases.ms-access / Re: OutputTo PDF error

SubjectAuthor
o OutputTo PDF errorRachel Armendariz

1
Re: OutputTo PDF error

<a0a39fcc-b7eb-414c-9375-a64b7b6b9fdfn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=879&group=comp.databases.ms-access#879

  copy link   Newsgroups: comp.databases.ms-access
X-Received: by 2002:a05:620a:471f:b0:6ce:61fa:9936 with SMTP id bs31-20020a05620a471f00b006ce61fa9936mr559571qkb.96.1663256417569;
Thu, 15 Sep 2022 08:40:17 -0700 (PDT)
X-Received: by 2002:a05:6870:41cf:b0:118:7eb8:4875 with SMTP id
z15-20020a05687041cf00b001187eb84875mr5620456oac.181.1663256416347; Thu, 15
Sep 2022 08:40:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.databases.ms-access
Date: Thu, 15 Sep 2022 08:40:16 -0700 (PDT)
In-Reply-To: <ab7f2cd3-8254-47e3-b7db-8263c06669c6@p13g2000yqh.googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=47.155.234.183; posting-account=UqnkBgoAAABwj5XLdMVjjqKP_Arzi9pR
NNTP-Posting-Host: 47.155.234.183
References: <49a1b4ae-a663-48a4-a9c2-1e482bc800b2@hd10g2000vbb.googlegroups.com>
<iGxIp.3968$_I7.555@newsfe08.iad> <af8eab8d-d569-44f4-a9c9-116d487b787c@v12g2000vby.googlegroups.com>
<7a1e1450-d663-4c2b-83a6-2df827f477df@dr5g2000vbb.googlegroups.com> <ab7f2cd3-8254-47e3-b7db-8263c06669c6@p13g2000yqh.googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a0a39fcc-b7eb-414c-9375-a64b7b6b9fdfn@googlegroups.com>
Subject: Re: OutputTo PDF error
From: armenperez@gmail.com (Rachel Armendariz)
Injection-Date: Thu, 15 Sep 2022 15:40:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 4128
 by: Rachel Armendariz - Thu, 15 Sep 2022 15:40 UTC

On Monday, June 13, 2011 at 5:48:08 AM UTC-7, grovelli wrote:
> On 11 Giu, 03:25, septimus <ovengra...@yahoo.com> wrote:
> > On Jun 10, 8:36 pm, septimus <ovengra...@yahoo.com> wrote:
> >
> >
> >
> >
> >
> > > On Jun 10, 6:21 pm, "Albert D. Kallal" <PleaseNOOOsPAMmkal...@msn.com>
> > > wrote:
> >
> > > > "septimus" wrote in message
> >
> > > >news:49a1b4ae-a663-48a4...@hd10g2000vbb.googlegroups.com...
> >
> > > > >When I use the following line of code to publish the report to PDF a
> > > > >single time, it works:
> > > > >DoCmd.OutputTo acOutputReport, "rptIAR", acFormatPDF, strPath
> >
> > > > The above leaves the report open. Place a command to close the report, like
> > > > this:
> >
> > > > DoCmd.Close acReport,"rptIAR"
> > > > DoEvents
> >
> > > > --
> > > > Albert D. Kallal (Access MVP)
> > > > Edmonton, Alberta Canada
> > > > Pleasenospam_kal...@msn.com
> >
> > > No, sorry, I think the way I phrased that was misleading. The report
> > > never opens, so I can't close it using "DoCmd.Close". The first time
> > > the code loop gets to the OutputTo command it says "Now Outputting
> > > 'rptIAR' to the file '[path].pdf'" and goes through all pages of the
> > > report before I get the "action canceled" error.
> >
> > > What I meant when I said "When I use the following line of code to
> > > publish the report to PDF a single time it works" is that if I place
> > > that line of code (the OutputTo command) in a different procedure with
> > > no loop, it works.
> >
> > > But in this context, it doesn't even matter what report I'm
> > > outputting, I still get the "cancel" error. Why does Access think I'm
> > > canceling the output?? Here's the code in case it helps:
> >
> > > 'Start looping through records.
> > > Do While Not rstGrouping.EOF
> >
> > > 'Populate the recordsource of the report.
> > > PopulateAnswerCounts "Interim", rstGrouping
> >
> > > 'Build the path and file name of the PDF we're producing.
> > > strPath = BuildFilePath("Interim", Me)
> >
> > > 'Publish the report in PDF format.
> > > DoCmd.OutputTo acOutputReport, "rptIAR", acFormatPDF, strPath,
> > > False
> >
> > > rstGrouping.MoveNext
> > > Loop
> >
> > Found the problem. Turned out to be just an invalid character in the
> > file name. Thanks for your assistance.- Nascondi testo citato
> >
> > - Mostra testo citato -
> What's the code for PopulateAnswerCounts and BuildFilePath?
I am getting the same error and the file name is correct, trying to post a two page pdf in a folder and get the cancel 2501 error. Any suggestions. Works for all other reports except my two page report.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor