A2000 to pdf tweak required

GaryPanic

Smoke me a Kipper,Skipper
Local time
Yesterday, 18:12
Joined
Nov 8, 2005
Messages
3,309
OK guys i have hacked S.Lebans pdf creator to rename the fields I want in the format i want -
but i cannot seem to get it to store the pdf in the location I want ?

i want to store it in C:\test
(I will rename it to the server location)
Has anyone tweaked this before
would be appricated
i can upload the d/b later on today if this helps


G




ReportToPDF
Copyright Lebans Holdings 1999 Ltd
Developed and tested under Access 97 through A2003.

The PDF Library file "DynaPDF.dll" and the file "StrStorage.dll" can be located in the same folder as the ReportToPDF.mdb file or in your Windows\System32 folder. The simplest and preferred method is to copy these 2 files into the same folder as your MDB(FE). The DynaPDF.dll file and the StrStorage.dll are NOT ActiveX files. They DO NOT require Registration or References to be set to them.

The StrStorage DLL exposes one function.
Public Function ConvertUncompressedSnapshotToPDF( _
UnCompressedSnapShotName As String, _
OutputPDFname As String = "", _
Optional CompressionLevel As Long = 0, _
Optional PasswordOwner As String = "" _
Optional PasswordOpen As String = "" _
Optional PasswordRestrictions as Long = 0 _
Optional PDFNoFontEmbedding As Long = 0, _
Optional PDFUnicodeFlags as Long = 0 _
) As Boolean

You must supply the full path and filename. Exporting your Report to Snapshot format and then decompressing the Snapshot file is handled by functionality exposed within this MDB. Please open the HowToUse form and examine the code behind the CommandButton controls.



Stephen Lebans
Stephen@lebans.com www.lebans.com
 
OK guys - Sorry the orginal post was missing the d/b - at work cannot upload - (Now at home)


Effectively i just want the file that is created to be stored on the network
however if I can get it to store in C:\test\ I can change the code to suit..

I have tweaked the orginal form to have an extra field on it so I cna change the name - again I will point the name element to a proper field on my form once this is tweaked ....


Your input would be most greatfully recieved
(and for those who I have not had the chance to wish a merry christmas/new year - hope this year is better than last - which was pretty awful!!)

G:cool:
 

Attachments

Type both the path and filename you want to save in the textbox.

I was able to save to C:\test\GaryPanic.pdf by entering c:\test\GaryPanic

If I exclude the path (Drive:\Directory\) then it always saves the file name in the textbox to My Documents.

For a network drive I assume you can type the network path (e.g. \\Share\folder\file )

attachment.php


attachment.php
 

Attachments

  • GaryPanic_PDF1.png
    GaryPanic_PDF1.png
    21.8 KB · Views: 554
  • GaryPanic_PDF2.png
    GaryPanic_PDF2.png
    50.1 KB · Views: 503
D'oh......

I give that a try -- might not be today

Thanks in advance
 
Jobs a good one -

exactly what i wanted -

(I have now tweaked it to get the actual naming i wanted - - but this was the bit that was cause me problems )

- the name i have from another form - which i can get it to pick up - done


FYI
next step will be to automatically pick up the pdf and attach to email and send
-

but i think i can do this one without any help (famous last words)
Many thanks

Gary
 
Glad I could help - good luck with the email attachment.
 

Users who are viewing this thread

Back
Top Bottom