473,804 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with PDF995 Setup - need advice

Hi:

I have PDF995 installed (and registered) and contacted the PDF995 tech support for help in
setting up to automatically print Access reports using PDF 995. As a result I received the
following materials. I have asked them how I should set this up (being a neophyte or worse
with VBasic) and have not received any advice I can use. Right now even if I set it up as
an operation explicit, I get an error on the { characters.

Can someone please give me the basic setup I should use and I will try and take it from
there. My objective is to have a function i can call that will take parameters and change
the INI file for PDF995 and execute the PDF995 print routine.

I picked another routine up off the PDF995 web site, (which is supposed to create a
function "pdfwrite") , but that doesn't work either since it doesn't create a function that
Access can recognize. I am using Access 2000 and w98!.

Thanks a lot

John Baker

----------------------------------------------------------------------------------------------------------------------

John,

First get the pdf995.ini file using this:

void GetPdf995Path(W CHAR *szRoot, DWORD *szlen)
{
HKEY hkey1;
DWORD type1 = REG_SZ;
long rc;
WCHAR subkeyname[] = TEXT("Software\ \Pdf995");
if ((RegOpenKeyEx( HKEY_LOCAL_MACH INE, &subkeyname, 0,
KEY_READ, &hkey1)) == ERROR_SUCCESS)
{
rc = RegQueryValueEx (hkey1, TEXT("Path"), NULL, &type1,
(LPBYTE)szRoot, szlen);
if (rc != ERROR_SUCCESS)
{

wcsncpy(szRoot, TEXT("c:\\"), wcslen(TEXT("c: \\"))+1);
}
RegCloseKey(hke y1);
}
else
{
wcsncpy(szRoot, TEXT("c:\\"), wcslen(TEXT("c: \\"))+1);
}

if (gl_bRunSharedN etwork)
{
WCHAR *ptr;
WCHAR szTemp[1024];
wcscpy(szTemp, gl_szSharedNetw orkIni);
ptr = wcsrchr(szTemp, '\\');
ptr[0] = NULL;
ptr = wcsrchr(szTemp, '\\');
ptr[0] = NULL;
ptr = wcsrchr(szTemp, '\\');
ptr[1] = NULL;
wcscpy(szRoot, szTemp);
}



return;
}

/////////////////////////

Then do something like this:

DWORD szlen =1024;
WCHAR szIni[1024];

GetPdf995Path(s zLog, &szlen);
GetPdf995Path(s zIni, &szlen);
wcscat(szIni, TEXT("pdf995\\r es\\pdf995.ini" ));
GetPrivateProfi leString(TEXT(" Parameters"),TE XT("Debug"), TEXT("0"), szBuf,
sizeof(szBuf), szIni);
if (!atoi(szBuf))
return FALSE;
Thank you,

_______________ _______________ _______________ _______________ _______________ _______________ ___
Nov 13 '05 #1
2 4341
John Baker <Ba******@Veriz on.net> wrote:
I have PDF995 installed (and registered) and contacted the PDF995 tech support for help in
setting up to automatically print Access reports using PDF 995. As a result I received the
following materials. I have asked them how I should set this up (being a neophyte or worse
with VBasic) and have not received any advice I can use. Right now even if I set it up as
an operation explicit, I get an error on the { characters.


You have C++ code there. Or similar. Throw it out.

I just added some PDF995 specific links at Creating PDF files from within Microsoft
Access http://www.granite.ab.ca/access/pdffiles.htm

Continue to ask here with any VBA type questions you may have.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #2
Tony:

Thanks Tony, I appreciate the response.

Would you take a look at the code that is offered on your web site under the heading:

"PDF and Mail Class Library for Access "

I have downloaded that code and set it up in Access (Access 2000, W98) and for reasons I
don't understand it does NOT provide a function called "PDFWRITE". Can you see any ways
that it should be changed so that a function exists. I notice that the only reference to
pdfwrite is in the statement:

Sub pdfwrite(report name As String, destpath As String, Optional strcriteria As String)

but I don't know enough about VBA to know if this is something that should create a
function.

Your help on this would be much appreciated.

Thanks

John Baker

Tony Toews <tt****@teluspl anet.net> wrote:
John Baker <Ba******@Veriz on.net> wrote:
I have PDF995 installed (and registered) and contacted the PDF995 tech support for help in
setting up to automatically print Access reports using PDF 995. As a result I received the
following materials. I have asked them how I should set this up (being a neophyte or worse
with VBasic) and have not received any advice I can use. Right now even if I set it up as
an operation explicit, I get an error on the { characters.


You have C++ code there. Or similar. Throw it out.

I just added some PDF995 specific links at Creating PDF files from within Microsoft
Access http://www.granite.ab.ca/access/pdffiles.htm

Continue to ask here with any VBA type questions you may have.

Tony


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10441
by: gudia | last post by:
I want to Programatically generate Access reports in the pdf format using some tool and then email them to people in the same code. Right now I am trying to do this with pdf995 using VBA (emailing is a separate issue, which pdf995 does not addresses). I downloaded pdf995. It controls printing via pdf995.ini file. In the VBA code, I have DoCmd.OpenReport "Report2", acViewNormal. I am having the following problems right now. (a) I do...
5
2799
by: John Baker | last post by:
Hi: I have PSD995 installed, and find it a good program. I have been told that using Access you can set up the PDF file name and location using scripting with this application so that PDF files can be created automatically. Has anyone done this, and if so what are the commands that one uses for (a) the Location; (b) the file name, and (c) the triggering of action. Help with this would be appreciated either in the form of answers to...
16
48891
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free programs for creating PDF documents provided free by Russell Lang. The actual automation requires VBA...
1
1711
by: Luis Moura | last post by:
Hi I'm devloping an application that creates a file PDF through the software PDF995 (virtual printer). I need that the program creates the name of the file automatically and that don't appear the box of "Save As" to the user. I would like if somone give an example how to do it. Thanks
7
21748
by: steve | last post by:
Hi All I have created rdlc files and when I load them into Report Viewer at run time they appear OK If I click on 'Print layout' button on Report Viewer the view again appears acceptable If I click on 'Page setup' button the margins left & right are not what I set on the rdlc file at design time (1.5cm) they are 5.9mm
5
8086
by: dexterb | last post by:
I cannot install any pdf writers on the machine. I need to print a MS access 2000 report to a pdf file so I can email this. I already have a PDF995 printer in my windows list of printers. All this needs to be done by VBA code.
12
1649
by: Tim Wallace | last post by:
I have a windows 2000 server on which I have installed the .NET 2.0 Framework runtime. I have an application I've written using VS 2005. In it, I use master pages. When I debug this app on my machine, it looks great. When I run it on the server, it looks like crap - no master page goodness is being employed. This is the first ASP.NET 2.0 application I've put on the server. I noticed that there is no ASP.NET tab on the properties...
1
2383
by: Gilberto | last post by:
pks00 Expert 280 Posts April 16th, 2007 01:08 PM Re: How to print MS Access 2000 report to PDF995 printer by VBA Code Sweet, your using pdf995, makes answering this question that much easier :)
2
1199
by: BobbyDazzler | last post by:
i have been writing an app for my work for 18 months now, in a fairly organic manner! my boss has never used a computerised system and i have been learning access along the way. we are a tyre/exhaust garage and the app will cover buying stock, invoicing customers, vat returns,, monthly statements for account holders etc etc. most of it is done and i am happy with it. the only thing causing a problem now is 1 suppliers method of...
0
9712
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10089
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.