Print Report with navision application server

Stone
Member Posts: 23
Hi,
Is'it possible to execute reports with NAS ?
When i try this procedure, i receive the message "you cannot print to ." in the event viewer ...
Many thanks for your help
Is'it possible to execute reports with NAS ?
When i try this procedure, i receive the message "you cannot print to ." in the event viewer ...
Many thanks for your help

0
Comments
-
My guess is that no printer is installed on the server.
Is this the case?0 -
no
a default printer is installed on the server. and, in the command GUIALLOWED Help, MBS wrote:
Use this operating system function to check whether the C/AL code is allowed to show any information on the screen. When you run Navision Attain Application Server (where GUIALLOWED returns FALSE), any call to CONFIRM or d.OPEN, or any attempt to use a form, report or dataport will generate an error.
Thanks for your answer0 -
Starting from Attain 3.60, it is possible to print reports using the Application Server.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Yes Luc, it's possible but that don't work
The report properties are:
UseSystemPrinter: YES
ShowStatus: NO
UseRequestForm: NO
The server running NAS is using a windows default printer (not a local printer but network printer)
The code-unit contains code:
PrintReport(ReportSelection.Usage::"S.Shipment");
and the function PrintReport:
ReportSelection.RESET;
ReportSelection.SETRANGE(Usage,ReportUsage);
ReportSelection.FIND('-');
REPEAT
ReportSelection.TESTFIELD("Report ID");
CASE ReportUsage OF
ReportSelection.Usage::"S.Shipment":
REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesShptHeader);
ReportSelection.Usage::"P.Ret.Shpt.":
REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,ReturnShptHeader);
ReportSelection.Usage::Inv2:
REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,TransShptHeader);
END;
UNTIL ReportSelection.NEXT = 0;
after running ADCS, nothing to printer and the message in the event viewer : "You cannot print to ."
:evil: :evil: :evil:
is't a joke from MBS ???0 -
Don't see a real solution to the problem here. IS it or ISN'T it possible to print a report from the NAS?
I get the following entry in my eventlog
"Before you can perform printer-related tasks, you need to install a printer." while there is obviously a printer installed, running the codeunit manually does the trick.0 -
Ok I got it working, just needed to make sure the printers were known to the user running the Navision Application Server.0
-
Search the forum for NAS and Print.
Also on the MSDN site of MS schould alsoe be a tech.articleDo you make it right, it works too!0 -
superjet wrote:CenT wrote:Ok I got it working, just needed to make sure the printers were known to the user running the Navision Application Server.
NAS runs as a Windows user. He just needed to be sure that user was configured with a default printer on that computer.There are no bugs - only undocumented features.0 -
I have exact same problem:
- 64 bit
- NAS printing PDF
- Using Windows Tasks to NET START <NASNAME>
- Problem MAY have occured AFTER installation of Invoice Workflow solution, but not sure
- Yes, printer assigned in NAV printer selection
- Yes, printer is default
- Yes, have logged in as nas user and testet directly in NAV
The weird thing is that is HAS BEEN working and suddenly it doesn't
Another weird thing is that if we restart the server then it works (1-2 times?), but the day after it doesn't.
We have tried local administrator and domain administrator.
We have re-installed PDFCreator printer driver.
We have created and tried PDFCreator2 (new instance).
All with no result and it's driving me crazy..
Please somebody help
Best regards
HenrikBest regards
Henrik Ohm0 -
We have the same problem.
Technical details:
Server 2008
Navision 5.
PDFCreator (latest version) is set to autosave to a fixed folder on the HD.
I run the NAS now under my account.
If I am logged on that server it works fine.
But when I log off the pdf is no longer created.
Has someone an idea?0 -
I have given up on PDFCreator.
Then it works on the server... then it doesn't... then it works... then it doesn't. There can be weeks between failure.
I have tried to install in server mode... didn't work.
Now I have used 1-2 hours to rewrite the code to be using Bullzip PDF (free) and easy and SEEM TO work for now.
Thank you for all your repliesBest regards
Henrik Ohm0 -
Have found the "solution". Apparently it is because there are 2 nas'es each with different user and tasks. If I stop one then it works. Solution for my customer: Install NAS2 on another server.
Thank you everybody.
sorry for the ... late... reply
HenrikBest regards
Henrik Ohm0
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