| Subject |
Re: so send PDF file Attachment with Marc mail program |
| From |
Mustansir Ghor <mustan31@hotmail.com> |
| Date |
Thu, 31 Mar 2022 05:29:35 -0400 |
| Newsgroups |
dbase.getting-started |
Dear All
Thank you all.
I went to the thread in reports and read it all. Akshat , Lee and Mervyn Sir Thank you.
In summary after opening the report file I modified following to automatically generate pdf file. Here orep is object of report class file. The file was saved in current directory but i guess by putting full path it can be saved wherever required.
orep.printer.printername="Microsoft Print to PDF"
orep.printer.printersource=2
orep.printer.papersource=15
orep.printer.papersize = 9 // Substitute
orep.outputfilename="Ghor7.pdf"
orep.output=2
orep.render()
Best Regards
Mustansir
Akshat Kapoor Wrote:
> Good Afternoon Lee, Mustansir,
>
> > In addition to what Ken has suggested, we do have a dBASE solution for
> > naming files via the "Microsoft Print to PDF" that you can check out.
> > There was a whole discussion and collaboration by several people here to
> > figure out how to get it to work for Eric Wu's request for a solution in
> > the Reports newsgroup under the "Microsoft Print to PDF -save as
> > filename XXX".
> >
> > The solution was encapsulated with a file to use by Akshat Kapoor in the
> > shared-code newsgroup titled "Printing to PDF without user
> > intervention." that includes a sample report titled "prt_to_pdf.rep" as
> > an attachment. From that point, once you have the report, you can
> > continue using Marc's email program.
>
> Lee I just took forward YOUR work and turned it into a sample code.
>
> I did not do any development.
>
> I still fail to recall anything about the discussion. Had I not seen my
> posts then I would never have believed that I did work on that.
>
> Mustansir exact title thread for you to proceed
>
>
> Subject: Re: Microso􀅌 Print to PDF -save as filename XXX
> From: Akshat Kapoor <akshat.kapoor@kapoorsons.in>
> Date: 16.08.2020, 19:42
> Newsgroups: dbase.reports
>
> Regards
> Akshat
|
|