There is no default printer currently selected ошибка

Содержание

  1. exception eprinter in module
  2. 1- Очистите мусорные файлы, чтобы исправить exception.dll, которое перестало работать из-за ошибки.
  3. 2- Очистите реестр, чтобы исправить exception.dll, которое перестало работать из-за ошибки.
  4. 3- Настройка Windows для исправления критических ошибок exception.dll:
  5. Как вы поступите с файлом exception.dll?
  6. Некоторые сообщения об ошибках, которые вы можете получить в связи с exception.dll файлом
  7. EXCEPTION.DLL
  8. процессов:
  9. 3 Suggested Answers
  10. 6ya staff
  11. Anonymous
  12. Jonathan Larson
  13. Add Your Answer
  14. Draw a box over the problem!!
  15. Attachments: Added items
  16. QuickReport выбрасывает исключение «There Is No Default Printer Currently Selected»
  17. 8 ответов
  18. Похожие вопросы:
  19. There is no default printer currently selected windows 10
  20. Answered by:
  21. Question
  22. Answers
  23. All replies

exception eprinter in module

вылетает по ошибке «Exception EPrinter in module print.exe at 00084612. There is no default printer currently selected. «

Похожие найденные проблемы:

Задача: обеспечить нормальную работу

«Копать» по идее можно с 2-х сторон: Дельфи и сервер 2008. Мои раскопки пока ни к чему не привели. Очень нужна помощь.

Добавление: пользователи в терминале подключают и свои принтеры с помощью ScrewDrivers4. На сервере 2003 все работало.

Файл exception.dll из unknown company является частью unknown product. exception.dll, расположенный в c:program files (x86)guitar pro 6exception.dll с размером файла 8704 байт, версия файла Unknown version, подпись 971ed4ec67883efab4d250d5cad5a26c.

В вашей системе запущено много процессов, которые потребляют ресурсы процессора и памяти. Некоторые из этих процессов, кажется, являются вредоносными файлами, атакующими ваш компьютер.
Чтобы исправить критические ошибки exception.dll,скачайте программу Asmwsoft PC Optimizer и установите ее на своем компьютере

1- Очистите мусорные файлы, чтобы исправить exception.dll, которое перестало работать из-за ошибки.

  1. Запустите приложение Asmwsoft Pc Optimizer.
  2. Потом из главного окна выберите пункт «Clean Junk Files».
  3. Когда появится новое окно, нажмите на кнопку «start» и дождитесь окончания поиска.
  4. потом нажмите на кнопку «Select All».
  5. нажмите на кнопку «start cleaning».

2- Очистите реестр, чтобы исправить exception.dll, которое перестало работать из-за ошибки.

3- Настройка Windows для исправления критических ошибок exception.dll:

  1. Нажмите правой кнопкой мыши на «Мой компьютер» на рабочем столе и выберите пункт «Свойства».
  2. В меню слева выберите » Advanced system settings».
  3. В разделе «Быстродействие» нажмите на кнопку «Параметры».
  4. Нажмите на вкладку «data Execution prevention».
  5. Выберите опцию » Turn on DEP for all programs and services . » .
  6. Нажмите на кнопку «add» и выберите файл exception.dll, а затем нажмите на кнопку «open».
  7. Нажмите на кнопку «ok» и перезагрузите свой компьютер.

Всего голосов ( 24 ), 23 говорят, что не будут удалять, а 1 говорят, что удалят его с компьютера.

Как вы поступите с файлом exception.dll?

Некоторые сообщения об ошибках, которые вы можете получить в связи с exception.dll файлом

(exception.dll) столкнулся с проблемой и должен быть закрыт. Просим прощения за неудобство.

(exception.dll) перестал работать.

exception.dll. Эта программа не отвечает.

(exception.dll) — Ошибка приложения: the instruction at 0xXXXXXX referenced memory error, the memory could not be read. Нажмитие OK, чтобы завершить программу.

(exception.dll) не является ошибкой действительного windows-приложения.

(exception.dll) отсутствует или не обнаружен.

EXCEPTION.DLL

Проверьте процессы, запущенные на вашем ПК, используя базу данных онлайн-безопасности. Можно использовать любой тип сканирования для проверки вашего ПК на вирусы, трояны, шпионские и другие вредоносные программы.

процессов:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Posted by keeon328 on Sep 15, 2011

3 Suggested Answers

6ya staff

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

Instant Repair Help over the Phone

Save Time & Money by instantly connecting to.

Posted on Jan 02, 2017

Anonymous

My printer is only a few months old. I have used up all the label roll that came with the machine and have put in a new roll (99010) which is slightly slimmer than the original one. I have selected the correct roll number from the list but the machine will not recognise it. It stops printing before the wording is complete and stops past the perforations (1/4 way into the next label). HELP!

Posted on Oct 09, 2008

Jonathan Larson

  • 130 Answers
      The error message: «Exception Eprinter in module LABELS.DLL at . » is displayed.
      or
      The error message: «Access violation at address . in module DYMOLBL.EXE» is displayedA. This problem can occur when DLS 7.x was installed over DLS 6.x, without first uninstalling DLS 6.x.
      Solution:
      Delete the file Dymolbl.ENG.
      DLS will still work, however, all default settings will be incorrect.

    The settings will need to be set correctly.
    On the DLS menubar, click Preferences and set the preferences as desired.
    The default values are:
    Default label file folder should be set to «C:Documents and SettingsAll UsersShared DocumentsDYMO LabelLabel Files»
    Default address book folder should be set to «C:Documents and SettingsAll UsersShared DocumentsDYMO LabelAddress Books»
    Default clipart folder should be set to «C:Documents and SettingsAll UsersShared DocumentsDYMO LabelClipart»

    B. An incorrect printer has been selected in the DYMO software.
    Solution:
    1. Start the DYMO Software.
    2. Click on File and point to Change printer.
    3. Click the LabelWriter model connected to the PC (e.g. Dymo Turbo)

    C. Occasionally, double-clicking the print command button in the list manager is not handled properly by the software.
    Solution:

    Single-click the print command button.

    D. An incorrect driver has been installed.
    Solution:
    Run the DYMO Driver Uninstaller
    Restart the PC and install the correct driver.

    To remove and reinstall the printer driver:
    1. On the Windows taskbar, click Start, point to Settings and click Printers (& Faxes).
    The printers window is displayed.
    2. Double-click the LabelWriter icon and delete any documents waiting to be printed.
    3. Close all programs.
    4. On the Windows taskbar, right-click on Start and click Explore.
    Windows Explorer is started.
    5. Double-click the file C:/Program Files/DYMO Label/Support Files/LW Remove.exe
    6. Unplug the LabelWriter’s USB connection from the back of pc and click OK.
    7. Choose Select all and then remove.
    Once the driver has disappeared from the printers dialog box, click Close.
    Restart the PC.
    8. When Windows has restarted, on the Windows taskbar, click Start, point to Programs, point to DYMO Label and click Uninstall DYMO Label.
    9. Reconnect the LabelWriter to the computer and reinstall both driver and software.

Posted on Jun 16, 2009

Add Your Answer

Tips for a great answer:

  • — Answer the question.
  • — If you need clarification, ask it in the comment box above.
  • — Better answers use proper spelling and grammar.
  • — Provide details, support with references or personal experience.

Draw a box over the problem!!

Attachments: Added items

Complete. Click «Add» to insert your video. Add

QuickReport выбрасывает исключение «There Is No Default Printer Currently Selected»

Я создал сервис Delphi, который печатает TQuickReports. Все работает нормально, если скомпилировано и запущено как приложение Windows. Но при преобразовании в службу, пытающуюся создать форму, содержащую компонент TQuickRep, возникает исключение.

Эта служба отлично работает на многих других коробках, но не на этой в частности. Вот некоторые подробности:

  • Использование QuickReport версии 4.07
  • Box — это операционная система Windows Server 2008.
  • Использование Delphi 2007
  • Printer.Printers.Count возвращает положительное значение. На самом деле я могу перечислить все принтеры.
  • Я попробовал запустить службу как с помощью локальной системной учетной записи, так и войдя в систему как администратор.

delphiwindows-servicesprinting

8 ответов

Моя программа написана на языке Delphi (объектно-ориентированный pascal). Когда я пытаюсь что-то напечатать, я получаю сообщение There is no default printer currently selected. на компьютерах без установленных принтеров. Чтобы предотвратить это, я хочу проверить, установлены ли какие-либо.

Я преобразую QuickReport в FastReport в источнике Delphi, я хочу определить имя метода события, которое назначено объекту QuickReport, и в соответствии с ним назначить метод тому же событию объекта FastReport. Как я могу это сделать?

Есть ли принтер по умолчанию, настроенный в сеансе 0? Помните, что в Vista / Server 2008 / Windows 7 службы запускаются в отдельном сеансе. Имеет ли вошедший в систему пользователь набор принтеров по умолчанию или нет, не имеет значения — это настройка для каждого сеанса и не влияет на сеанс 0.

Можете ли вы переписать код, чтобы изящно обработать это исключение и выбрать принтер для использования?

Вы можете решить эту проблему, создав новый dword UserSelectedDefault со значением: 1 в HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindowsSessionDefaultDevicesSession_ID

Убедитесь, что у вас выбран локальный принтер.

Коллега в конце концов нашел решение. Я должен был добавить, что это «network» принтеров, а не локальные принтеры (в то время я не думал, что это связано с проблемой). Таким образом, служба должна была быть установлена с «NetworkService» в качестве учетной записи Пользователя на вкладке вход. Из справки Windows:

Чтобы указать, что служба использует учетную запись сетевой службы, щелкните эту учетную запись и введите NT AUTHORITYNetworkService

У меня есть метод веб-службы, который использует EclipseLink JPA . Этот метод в основном вставляет данные в базу данных. Что-то вроде : public void insert(parameters. ) < em.getTransaction().begin(); em.persist(employee); em.getTransaction().commit(); // em.close(); >Теперь на клиентском конце.

Я хочу изменить содержимое .OutOfStockMessage div в BigCommerce. Этот div содержит текст The selected product combination is currently unavailable и появляется, когда выбран параметр продукта out-of-stock. Я могу изменить текст с помощью JS, но когда выбран параметр продукта, этот текст создается.

Вы можете предоставить пользователю возможность выбрать принтер для этой службы. Служба Windows, вероятно, не имеет набора принтеров по умолчанию.

Установите TQuickRep.PrinterSettings.PrinterIndex , чтобы установить номер принтера. Затем TQuickRep.Print для печати отчета.

На самом деле это проблема Delphi(5). Сравнение доступных принтеров и принтера по умолчанию чувствительно к регистру (Printers.pas):

Изменение сравнения на: если lowercase(TPrinterDevice(Objects[I]).Device) = lowercase(Device) решит проблему.

У нас вот проблема двойники. Использование серверов TS, Citrix и Powerfuse 9. Powerfuse имел все принтеры с заглавной буквы, однако они были разделены в смешанном случае. Эта комбинация привела к сбою Delphi/QReport

Когда все принтеры от printserver до powerfuse находятся в одном и том же корпусе (не важно верхний или нижний или даже смешанный), проблема исчезла

Если вы используете terminal services 2008, один и тот же пользователь для нескольких сеансов, вам следует заглянуть в:

Я решил аналогичную проблему: если приложение Delphi (или служба) использует QuickReport, оно запускается до того, как система загрузит принтер по умолчанию (или принтеры).

  • Когда QuickReport выполняет TQRPrinter.Init , printer.printers.count равно нулю,
  • вскоре после загрузки системы printer.printers.count — это количество принтеров,
  • но tqrprinter.int уже выполнен, поэтому TQRPrinter.FPrinterOK является ложным,
  • затем вы увидите эту ошибку при попытке открыть QuickReport.

Решение для меня состояло в том, чтобы дождаться загрузки принтеров перед запуском приложения (в citrix и terminal server). Я решил эту проблему двумя способами: либо переписав tqrprinter , либо отложив dpr .

Похожие вопросы:

Надеюсь, кто-нибудь сможет помочь. В моем приложении Delphi 7 небольшой процент пользователей сообщает об ошибках при печати, и я пытаюсь решить эту проблему с помощью последнего из них. Я немного.

У меня есть приложение MFC, которое запускает окно IWebBrowser2. На компьютерах пользователей, где Internet Explorer не является их браузером по умолчанию, они получают следующее предупреждающее.

Я пытаюсь сделать тесты функций RSpec на внешнем API. Моя конфигурация VCR выглядит следующим образом: VCR.configure do |config| config.cassette_library_dir = ‘spec/vcr’ config.hook_into :webmock.

Моя программа написана на языке Delphi (объектно-ориентированный pascal). Когда я пытаюсь что-то напечатать, я получаю сообщение There is no default printer currently selected. на компьютерах без.

Я преобразую QuickReport в FastReport в источнике Delphi, я хочу определить имя метода события, которое назначено объекту QuickReport, и в соответствии с ним назначить метод тому же событию объекта.

У меня есть метод веб-службы, который использует EclipseLink JPA . Этот метод в основном вставляет данные в базу данных. Что-то вроде : public void insert(parameters. ) <.

Я хочу изменить содержимое .OutOfStockMessage div в BigCommerce. Этот div содержит текст The selected product combination is currently unavailable и появляется, когда выбран параметр продукта.

Я пишу сервис windows используя Delphi XE3 портативный компьютер. Служба будет считывать данные из базы данных, генерировать pdf с помощью quickreport 5.05.1. Я планирую сгенерировать pdf, используя.

Я использую приведенный ниже код, чтобы предотвратить исключение, когда кто-то пытается печатать, но не имеет набора принтеров по умолчанию. Я получил отчет от пользователя, использующего.

Delphi 7 / QuickReport 5.02.2 Мы использовали подобный код в течение нескольких лет, но недавно столкнулись с проблемой, когда мы переносим рабочие станции на Windows 10. Раньше мы использовали.

There is no default printer currently selected windows 10

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

Hi All, I often got «No Default Printer Selected» when print locally using Terminal Services.

Sometimes, it’s ok, sometimes don’t.

I was set «Do Not Allow client printer redirection» to Disabled at local group policy

I also Check «Connect client printers at logon» option and «Default to main client printer» option at Users Environment

At Remote Control tab in users properties, i check «Interact with the session» option.

What should i do to fix this problem. tq.

Answers

Please try the following hotfix first.

972600 The default printer setting is changed on the console after you disconnect a remote desktop session from a Windows Vista or a Windows Server 2008-based terminal server
http://support.microsoft.com/default.aspx?scid=kb;EN-US;972600

If the issue persists, let us know how did you configure the network printer, as a workaround, you can refer to the following article to configure default printer:

How to Add a Default Printer Using a Visual Basic Script
http://support.microsoft.com/kb/263226

Hope this helps! If you have further concern, feel free to let me know.

如果您对我们的论坛在线支持服务有任何的意见或建议,请通过 邮件 告诉我们。
立刻免费下载 TechNet 论坛好帮手

Tom Zhang – MSFT

  • Proposed as answer by Alan Morris Editor Saturday, October 15, 2011 8:23 AM
  • Marked as answer by Tom Zhang – MSFT Monday, November 7, 2011 8:55 AM

Please try the following hotfix first.

972600 The default printer setting is changed on the console after you disconnect a remote desktop session from a Windows Vista or a Windows Server 2008-based terminal server
http://support.microsoft.com/default.aspx?scid=kb;EN-US;972600

If the issue persists, let us know how did you configure the network printer, as a workaround, you can refer to the following article to configure default printer:

How to Add a Default Printer Using a Visual Basic Script
http://support.microsoft.com/kb/263226

Hope this helps! If you have further concern, feel free to let me know.

如果您对我们的论坛在线支持服务有任何的意见或建议,请通过 邮件 告诉我们。
立刻免费下载 TechNet 论坛好帮手

Tom Zhang – MSFT

  • Proposed as answer by Alan Morris Editor Saturday, October 15, 2011 8:23 AM
  • Marked as answer by Tom Zhang – MSFT Monday, November 7, 2011 8:55 AM

I’ll try it asap.

Any progress should be reported.

I’ve tried the first solution. I still got the same problem.

when i tried the second solution, i am confuse about the setting, what should i write at PrinterPath and WshNetwork.SetDefaultPrinter?

Set WshNetwork = CreateObject(«WScript.Network»)
PrinterPath = «\ServerPrinter»
PrinterDriver = «PrinterDriver»
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter «\ServerPrinter»

The Client using Canon IP1900. The printer is not share with other printer. cause i hope the terminal service will print locally to client’s default printer.

I’m connecting to Terminal Server using internet Connection.

I Check «Connect client printers at logon» option and «Default to main client printer» option at Users Environment

I have created a Delphi Service which prints TQuickReports. Everything works fine if compiled and run as a Windows Application. But when converted to operate as a service trying to create a form containing a TQuickRep component throws the exception.

This service runs fine on many other boxes but not this one in particular. Here are some details:

  • Using QuickReport version 4.07
  • Box is a Windows Server 2008 operating system.
  • Using Delphi 2007
  • Printer.Printers.Count is returning a positive value. In fact I can list out all of the printers.
  • I have tried running the service both using Local System Account and Logged on as an Admin.

Chris Thornton's user avatar

asked Apr 5, 2010 at 17:45

M Schenkel's user avatar

M SchenkelM Schenkel

6,30412 gold badges62 silver badges107 bronze badges

Is there a default printer set up in session 0? Remember that under Vista / Server 2008 / Windows 7, services run in a separate session. Whether or not the logged-in user has a default printer set is not relevant — it’s a per-session setting and doesn’t affect session 0.

Can you rewrite the code to gracefully handle that exception and pick a printer to use?

answered Apr 5, 2010 at 18:15

Mihai Limbășan's user avatar

Mihai LimbășanMihai Limbășan

63.7k4 gold badges48 silver badges59 bronze badges

1

You can solve this problem by creating a new dword UserSelectedDefault with the value: 1 in
HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindowsSessionDefaultDevicesSession_ID

Make sure you have a local printer selected.

answered Feb 17, 2012 at 11:23

Niek H.'s user avatar

2

You might give the user a way to select the printer for the service. The Windows service probably does not have a default printer set.

Set TQuickRep.PrinterSettings.PrinterIndex to set the printer number. Then, TQuickRep.Print to print the report.

answered Apr 5, 2010 at 18:25

Marcus Adams's user avatar

Marcus AdamsMarcus Adams

52.7k9 gold badges90 silver badges143 bronze badges

3

A colleague ended up finding the solution. I should have added these are «network» printers and not Local printers (at the time I didn’t think this was related to the problem). So the service needed to be installed with «NetworkService» as the user account under the logon tab. From the Windows Help:

To specify that the service uses the Network Service account, click This account, and
then type NT AUTHORITYNetworkService

answered Apr 8, 2010 at 19:47

M Schenkel's user avatar

M SchenkelM Schenkel

6,30412 gold badges62 silver badges107 bronze badges

We had a simular problem here. Using TS servers, Citrix and Powerfuse 9.
Powerfuse had all printers capitalized, however they were shared in a mixed case.
This combination caused Delphi/QReport to crash

When all printers are from printserver to powerfuse in the same case (not important upper or lower or even mixed), the problem was gone

answered Feb 2, 2012 at 14:23

Han's user avatar

Actually it is a Delphi(5) problem. The comparison of the available printers and the default printer is case sensitive (Printers.pas):

if TPrinterDevice(Objects[I]).Device = Device then
begin
   with TPrinterDevice(Objects[I]) do
      SetPrinter(PChar(Device), PChar(Driver), PChar(Port), 0);
   Exit;
end;

Changing the comparison to:
if lowercase(TPrinterDevice(Objects[I]).Device) = lowercase(Device)
solves the problem.

ronalchn's user avatar

ronalchn

12.2k10 gold badges50 silver badges61 bronze badges

answered Apr 19, 2012 at 9:42

Keesjan van Efferen's user avatar

If using terminal services 2008, same user for multiple sessions, you should look into the:

HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindowsSessionDefaultDevicesSession_ID 

instead of

HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows

JMax's user avatar

JMax

26k12 gold badges69 silver badges88 bronze badges

answered Sep 25, 2010 at 0:22

Akko's user avatar

I solved a similar problem: If a Delphi application (or service) uses QuickReport, it runs before the system loads the default printer (or printers).

  • When QuickReport executes TQRPrinter.Init, the printer.printers.count is zero,
  • shortly after the system loads, the printer.printers.count is the number of printers,
  • but tqrprinter.int has already executed, so TQRPrinter.FPrinterOK is false,
  • you then see this error when you try open a QuickReport.

The solution for me was wait until the printers were loaded before launching the application (in citrix and terminal server). I solved this in two ways, either by overwriting tqrprinter or delay the dpr.

Andy Hayden's user avatar

Andy Hayden

356k101 gold badges621 silver badges535 bronze badges

answered Aug 10, 2012 at 9:58

Rotary's user avatar

On starting Diamonds, you get the error:

You request has cause the following error:

There is no default printer currently selected

Cause: a windows update

Solution

  1. Close Diamonds
  2. Set a printer as the default printer using Control Panel.
  3. If none available, install a PDF printer (like PdfCreator) and set this as the default printer.
  4. Launch Diamonds

Symptoms

When you try to print in Microsoft Word, you may receive one of the following error messages, depending on the version of Word that you are running:

  • Microsoft Word 2002


    Word cannot print. There is no printer installed.

    Note Microsoft Office 2002 has built-in functionality that you can use to obtain more information about difficult-to-troubleshoot alerts or error messages. If you want to enable this functionality for this and other error messages in Office 2002, download the Office 2002 Customizable Alerts file. To do this, visit the following Microsoft Office Update Web site:

    http://www.microsoft.com/downloads/details.aspx?FamilyID=8fbee1d3-c5bb-4a36-a2f7-dc63de2a818c&DisplayLang=enNote If you reached this article by clicking the Web Info button in an error message, you already have Customizable Alerts enabled.

  • Microsoft Office Word 2007


    Word cannot print because there is no default printer selected. Please select a printer.

    To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The following number appears in the lower-right corner of this message:

    200923

What To Try

No default printer driver is installed

If you do not have a default printer, use the Add Printer Wizard to install one. To do this, follow these steps.

NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

  1. Click Start, and then click Printers and Faxes.

  2. Under Printer Tasks, click Add a printer, and then follow the instructions on the screen to install the default printer driver.

Note If the printer model is not listed in the Manufacturers and Printers boxes, see the Hardware Compatibility List (HCL) for an updated driver. To do this, visit the following Microsoft Web site:

http://www.microsoft.com/whdc/hcl/default.mspxIf the printer is not on the HCL, contact the printer manufacturer for drivers and instructions.

There is a damaged entry in the Windows Registry

To repair the damaged entry in the Windows Registry, follow these steps:

  1. Click Start, and then click Printers and Faxes.

  2. Double-click Add a Printer.

  3. Click Next.

  4. Click Local printer attached to this computer.

  5. Click to clear the Automatically detect and install my Plug and Play Printer check box.

  6. Click Next.

  7. Click LPT1 port, and then click Next.

  8. In the Manufacturers box, click Generic.

  9. In the Printers box, click Generic/Text Only, and then click Next.

  10. Under Printer Name, type TEST.

  11. Under Do you want to use this printer as the default printer, click YES.

  12. Click Next, and then click Do Not Share this printer.

  13. Click Next, and then click No under Do you want to print a test page.

  14. Click Next, and then click Finish.

  15. In the Printers folder, right-click the Generic/Text Only printer, and then click Set as Default.

  16. Right-click your original printer, and then click Set as Default.

The printer driver is damaged, and it requires reinstallation

To complete this procedure, you must have the Microsoft Windows Installation Disc, or the printer driver disk or CD-ROM from the printer manufacturer. To reinstall the printer driver, follow these steps:

  1. Click Start and then click Printers and Faxes.

  2. Right-click your default printer, and then click Delete. If you prompted to remove extra files left on the system, click Yes.

  3. Under Printer Tasks, click Add a printer, and then follow the instructions on the screen to reinstall the printer driver.

When you reinstall the printer driver, Windows writes the correct entries for the ports, printer ports, and Windows sections in the Win.ini file.

Note If you are on a network, you may have to install the correct printer driver from a shared printer. Contact the network administrator for instructions about how to do this.

There is a device conflict on the printer port

If you cannot print to the local printer at all, there may be a device that is conflicting with the computer printer port, or the port may not be turned on. To remove and reinstall the printer port, follow these steps:

  1. Right-click My Computer, and then click Properties.

  2. On the Hardware tab, click Device Manager.

  3. Expand Ports (COM & LPT), and then double-click the port that the printer is using.

  4. If the Device status box says that the device is working correctly, you may have some other system problem.

  5. If the Device Status box indicates a problem, click OK, and then click Remove.

  6. Click OK, and then restart your computer.

  7. Click Start, and then click Control Panel. If Control Panel icons are not displayed, click Switch to Classic View under Control Panel.

  8. Double-click Add Hardware, and then wait for Windows to detect the hardware in your computer.

If the port still does not work after you remove and reinstall it, examine the printer cable or the BIOS settings on the computer to make sure that the port is turned on. See the computer documentation for instructions about how to do this.

Files in the Windows printing subsystem are damaged

You can use the System File Checker tool to scan all protected files and verify their versions. To do this, follow these steps:

  1. Click Start.

  2. Click Run, type sfc /scannow in the Open box, and then click OK.

    Note This command scans all protected system files and replaces incorrect versions with correct Microsoft versions. You may have to provide access to the Windows installation source files.

For more information about the System File Checker for Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:

310747 Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

There is a problem with the fax configuration

If you receive this error message when you try to send a fax, there may be a problem with the way that the fax software is configured. If the fax software is provided by a third party, view the documentation that is included with the software for information about how to resolve this issue.

More Information

For more information about printing problems, click the following article numbers to view the articles in the Microsoft Knowledge Base:

321611 How to troubleshoot print failures in Word 2002

304433 How to troubleshoot printer output issues in Word 2000

128345 How to troubleshoot printing problems in Windows 95, Windows 98, and Windows Millennium Edition

n

243075 How to troubleshoot network printing problems

163551 Troubleshooting printing problems in Windows

291336 How to troubleshoot printing problems in Word 2002 (Part 1)

291344 How to troubleshoot printing problems in Word 2002 (Part 2)

191516 Cannot print in Windows

826862 How to troubleshoot printing problems in Word 2007 or in Word 2003

Solution 1

You can solve this problem by creating a new dword UserSelectedDefault with the value: 1 in
HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindowsSessionDefaultDevicesSession_ID

Make sure you have a local printer selected.

Solution 2

Is there a default printer set up in session 0? Remember that under Vista / Server 2008 / Windows 7, services run in a separate session. Whether or not the logged-in user has a default printer set is not relevant — it’s a per-session setting and doesn’t affect session 0.

Can you rewrite the code to gracefully handle that exception and pick a printer to use?

Solution 3

A colleague ended up finding the solution. I should have added these are «network» printers and not Local printers (at the time I didn’t think this was related to the problem). So the service needed to be installed with «NetworkService» as the user account under the logon tab. From the Windows Help:

To specify that the service uses the Network Service account, click This account, and
then type NT AUTHORITYNetworkService

Solution 4

Actually it is a Delphi(5) problem. The comparison of the available printers and the default printer is case sensitive (Printers.pas):

if TPrinterDevice(Objects[I]).Device = Device then
begin
   with TPrinterDevice(Objects[I]) do
      SetPrinter(PChar(Device), PChar(Driver), PChar(Port), 0);
   Exit;
end;

Changing the comparison to:
if lowercase(TPrinterDevice(Objects[I]).Device) = lowercase(Device)
solves the problem.

Solution 5

We had a simular problem here. Using TS servers, Citrix and Powerfuse 9.
Powerfuse had all printers capitalized, however they were shared in a mixed case.
This combination caused Delphi/QReport to crash

When all printers are from printserver to powerfuse in the same case (not important upper or lower or even mixed), the problem was gone

Comments

  • I have created a Delphi Service which prints TQuickReports. Everything works fine if compiled and run as a Windows Application. But when converted to operate as a service trying to create a form containing a TQuickRep component throws the exception.

    This service runs fine on many other boxes but not this one in particular. Here are some details:

    • Using QuickReport version 4.07
    • Box is a Windows Server 2008 operating system.
    • Using Delphi 2007
    • Printer.Printers.Count is returning a positive value. In fact I can list out all of the printers.
    • I have tried running the service both using Local System Account and Logged on as an Admin.
  • In fact this is EXACTLY what we do. Essentially the printer is specified by name and then we have a routine which will scan the Printer.Printers array and return the integer. Problem is I can’t even get to this point; I can’t even create a TQuickRep instance.

  • This is new to me. No, I was not aware there were «sessions». How do I get a handle to a specific «Session»?

  • @M Schenkel, seems like a bug, but the work around is probably to set the default printer prior to creating your TQuickRep object.

  • Can you post the code around where the error happens? We have implemented a variation on the solution suggested by Marcus Adams for printing Quick Report reports via a Windows Service and do not see the error that you do on Windows 2008.

  • I think the other answer solved the problem. But will keep this in mind.

  • Having a local printer (even though there was not physically one attached) resolved issue.

Recents

Related

Понравилась статья? Поделить с друзьями:
  • There is no attribute prefix ошибка
  • There is no app found ошибка
  • There is much snow on the mountain где ошибка
  • There is much milk in the cup исправить ошибки
  • There is an error in xml document ошибка