Create PDF without PDF Printer

Navsyst2
Member Posts: 29
Hallo everybody,
could anyone tell me, if there anyway to create PDF Document without to install PDF-Printer?
Thanks
navsyst2
could anyone tell me, if there anyway to create PDF Document without to install PDF-Printer?
Thanks
navsyst2
0
Comments
-
You could use a DLL from www.activepdf.com
The DLL contains all commands to create a pdf. A trial version is available there.
Afaik there also exists freeware/opensource DLL's, but the one I know is for java only.
Hope this helps
Thomas0 -
Hi ha ha ha ha ha (ha5)
thanks for your reply. I really appreciate it.
Another question: Do you use activepdf in Navision too?
Last guestion for everyone: Do anyone know how SAP works according to creating pdf-documents? They said that they didn't need to install any PDF-Printer. Is that true?
Thanks..0 -
Hi
I prefer ha*5
I used activepdf in a Web-Project with Active Server Pages, where it also was used as automation server. I do not use it in Navision.
SAP: Sorry no info about this.
Regards
Thomas0 -
Hi there!
Anyone knows a way on Dynamics NAV 2009 SP1 (Build: 29626) in Classic Client, how to use Microsoft Print to PDF virtual printer in C/AL code to give the desired name and location for the result PDF, so that no standard file name request form jumps up, only the printing (I mean PDF generating) happens without any user interference?
I tried to use this example, but it seems, that these .NET Framework Namespaces/DLLs are invisible in the Dev Environment, and on the same server, Dynamics 365 Business Central 14 Dev Env sees them and can declare them, as dotnet type Variables, but for 2009 SP1, they cannot be selected:
Code example from web forums:
PROPERTIES
{
OnRun=VAR
FileName@1000000000 : Text[250];
BEGIN
FileName := 'c:\Temp\Demo.pdf';
PrintDocument(FileName, '', 10000);
END;
}
CODE
{
PROCEDURE PrintDocument@1000000001(FileName@1000000000 : Text[250];PrinterName@1000000003 : Text[250];TimeoutInMs@1000000004 : Integer);
VAR
Process@1000000002 : Automation "'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Diagnostics.Process" RUNONCLIENT;
StartInfo@1000000001 : Automation "'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Diagnostics.ProcessStartInfo" RUNONCLIENT;
PrinterSettings@1000000005 : Automation "'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.System.Drawing.Printing.PrinterSettings" RUNONCLIENT;
BEGIN
IF PrinterName = '' THEN BEGIN
// Falls kein Drucker angegeben, den Standarddrucker verwenden
PrinterSettings := PrinterSettings.PrinterSettings;
PrinterName := PrinterSettings.PrinterName;
END;
StartInfo := StartInfo.ProcessStartInfo;
StartInfo.Verb := 'PrintTo';
StartInfo.FileName := FileName;
StartInfo.Arguments := '"' + PrinterName + '"';
Process := Process.Process;
Process.StartInfo := StartInfo;
Process.Start;
IF NOT Process.WaitForExit(TimeoutInMs) THEN BEGIN
Process.Kill;
END;
END;
BEGIN
END.
}
Thanks in advance,
Best begards,
Gyula0 -
Your code, if it runs, prints the file given by the FileName parameter to the printer given by the PrinterName parameter, using the default app that is registered for printing files with the filename extension given by the FileName parameter.
If you want to specify the filename that the printer should generate, you would need to create a printer port, or search for, install and then control a printer port that lets you specify the output filename the port writes to.
I don't know if such software is available. I know it used to be possible to specify a file name as printer port. (Entries like LPT1: or COM1: are essentially just that: a device accessible via the API for writing files.)0 -
Maybe using REPORT.SAVEASPDF function
https://learn.microsoft.com/en-us/dynamics-nav/saveaspdf-function--report-0 -
REPORT.SAVEASPDF is not a thing in NAV 2009 SP1.0
-
Maybe using REPORT.SAVEASPDF function
https://learn.microsoft.com/en-us/dynamics-nav/saveaspdf-function--report-
Hi,
The reports are in a classical format and object, and no resource is allocated to convert all of them to RDLC-Type reports and use RTC Client instead, so this option is not available in our situation.
Meanwhile, I have found a possible solution to our demand, which can be set up for Auto-Save Folder and Filename Template also for future PDF-Printing:
https://github.com/clawsoftware/clawPDF0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions