AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.04.2008, 15:02   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
New page

The Print preview function in NAV allows the user to print a report directly to the screen instead of to paper. There are a few quirks to this function that need to be explained to and understood by Navision users.

==Limitation on printing from Print Preview==
Once the print preview is launched, a command in C/SIDE
CurrReport.PREVIEW
if this command is triggered anywhere in C/SIDE code whilst the report is running, NAV disables the ability to then print the report to paper. This is very sensible and logical, but often misunderstood.

In simple terms the command is only called if the developer wished to run code differently if the user printed to screen or to paper. The two most obvious issues are Check printing and Print counts.

When printing a check, it is critical that the output actually goes to paper, since number sequences are generated, and statuses are changed in the system once the check is created. Also in NAV many [[Header table]]s have a counter field to indicate how many times a document was printed. We don't want to increment the counter unless the report went to paper.

So because NAV can not know what the developer was thinking, the logic is that if the developer wants to run different code according to whether the report went to paper or screen, the user needs to specifically run the report in each mode seperately.

Источник http://wiki.dynamicsbook.com/index.php?tit..._preview_in_NAV
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 17:35.