Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download - Clean, repair and optimize your system



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner 2009 - Free Scan Now

Error in Printing using "Print To File" and RAW Print mode

microsoft.public.windows.vista.print fax scan




Recommended Fix - Fix Vista Errors and Optimize Performance

Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 03-26-2008
DougFarmer123
 

Posts: n/a
Error in Printing using "Print To File" and RAW Print mode

I have an application that has worked for many years taking data from a
Unix system and printing it to a Windows printer using the RAW mode.

This program is written in "C" using standard OpenPrinter,
ClosePrinter etc API calls. The DOC_INFO_1 pDataType - set to \"RAW\".

In Vista, this works fine sending data to a physical printer. But, if
the user sets the printer to \"Print To File\" for the port number, the
print job hangs. When you look at the jobs in printer, the spool job
shows \"Error - Printing\" and the printer in the control panel shows
\"Error\".

If I run another application, like Notepad, when the data is printed, I
get the normal dialog box for \"Output File Name\".

I cannot find any messages in the event viewer, so I don't know what
the message means.

I also tried a third party application, \"Frogmore Raw Print\"
('Frogmore - Software for printing'
(http://www.frogmore-raw-print.com/)) and I get the same results.

The printer is defined as an HP Laserjet 5 Printer, but I also get the
same result if I define the printer has a Generic / Text Only printer,
except the printer in the control panel goes into an Error state and
there is no error message in the spool job detail form.

Does anyone know why this is happening?

I would appreciate any help.

Doug


--
DougFarmer123
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-26-2008
Alan Morris [MSFT]
 

Posts: n/a
Re: Error in Printing using "Print To File" and RAW Print mode
Make sure the application is not generating UI in session 0 since logging
onto Vista is no longer session 0.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"DougFarmer123" <DougFarmer123.36we20@no-mx.forums.net> wrote in message
newsougFarmer123.36we20@no-mx.forums.net...
>
> I have an application that has worked for many years taking data from a
> Unix system and printing it to a Windows printer using the RAW mode.
>
> This program is written in "C" using standard OpenPrinter,
> ClosePrinter etc API calls. The DOC_INFO_1 pDataType - set to \"RAW\".
>
> In Vista, this works fine sending data to a physical printer. But, if
> the user sets the printer to \"Print To File\" for the port number, the
> print job hangs. When you look at the jobs in printer, the spool job
> shows \"Error - Printing\" and the printer in the control panel shows
> \"Error\".
>
> If I run another application, like Notepad, when the data is printed, I
> get the normal dialog box for \"Output File Name\".
>
> I cannot find any messages in the event viewer, so I don't know what
> the message means.
>
> I also tried a third party application, \"Frogmore Raw Print\"
> ('Frogmore - Software for printing'
> (http://www.frogmore-raw-print.com/)) and I get the same results.
>
> The printer is defined as an HP Laserjet 5 Printer, but I also get the
> same result if I define the printer has a Generic / Text Only printer,
> except the printer in the control panel goes into an Error state and
> there is no error message in the spool job detail form.
>
> Does anyone know why this is happening?
>
> I would appreciate any help.
>
> Doug
>
>
> --
> DougFarmer123



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-27-2008
DougFarmer123
 

Posts: n/a
Re: Error in Printing using "Print To File" and RAW Print mode

Alan,

Both of these applications are windows forms applications. My
application uses a telnet session to talk to a Unix host. The 3rd part
application asks for a file to print and then sends it to a printer in
RAW mode.

Everything else works in both applications. All UI functionality is
present.

I am not sure of your meaning regarding session 0. I have only used
session numbers when working with CITRIX and then only to determine
which session number I was currently assigned.

Doug


--
DougFarmer123
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-27-2008
Alan Morris [MSFT]
 

Posts: n/a
Re: Error in Printing using "Print To File" and RAW Print mode
Same thing. Will the application work when using remote desktop to another
Vista machine?

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"DougFarmer123" <DougFarmer123.36xrd0@no-mx.forums.net> wrote in message
newsougFarmer123.36xrd0@no-mx.forums.net...
>
> Alan,
>
> Both of these applications are windows forms applications. My
> application uses a telnet session to talk to a Unix host. The 3rd part
> application asks for a file to print and then sends it to a printer in
> RAW mode.
>
> Everything else works in both applications. All UI functionality is
> present.
>
> I am not sure of your meaning regarding session 0. I have only used
> session numbers when working with CITRIX and then only to determine
> which session number I was currently assigned.
>
> Doug
>
>
> --
> DougFarmer123



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-27-2008
DougFarmer123
 

Posts: n/a
Re: Error in Printing using "Print To File" and RAW Print mode

Alan,

I set up a remote desktop session from an XP machine, to the Vista
machine and logged in as a user with Administrator priviledges. I ran
both my program and the 3rd party program and still the same result. If
I watch the printer form (with the jobs displaying), I first see a
status of "Spooling" immediately followed by "Error - Printing". If I
then open up Control Panel -> Printers, the printer shows 1 job, with
the word "Error" below it.

I've attached some screen shots if that helps

Thanks for responding!!!

Doug


+-------------------------------------------------------------------+
|Filename: Properties.JPG |
|Download: http://vista64.net/forums/attachment.php?attachmentid=3229|
+-------------------------------------------------------------------+

--
DougFarmer123
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-27-2008
Alan Morris [MSFT]
 

Posts: n/a
Re: Error in Printing using "Print To File" and RAW Print mode
Check the system eventlog for print errors

Also enable informational events for the spooler in Printers Folder, right
click any white space, Run as administrator, Server Properties, Advanced.

I did not get the image files. It's okay.

Where are the files getting written to? Make sure the user has write access
to this folder. If the app writes to %windir%\temp, the user context does
not have write access in Vista.

Error 5 is access denied.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"DougFarmer123" <DougFarmer123.36y4k6@no-mx.forums.net> wrote in message
newsougFarmer123.36y4k6@no-mx.forums.net...
>
> Alan,
>
> I set up a remote desktop session from an XP machine, to the Vista
> machine and logged in as a user with Administrator priviledges. I ran
> both my program and the 3rd party program and still the same result. If
> I watch the printer form (with the jobs displaying), I first see a
> status of "Spooling" immediately followed by "Error - Printing". If I
> then open up Control Panel -> Printers, the printer shows 1 job, with
> the word "Error" below it.
>
> I've attached some screen shots if that helps
>
> Thanks for responding!!!
>
> Doug
>
>
> +-------------------------------------------------------------------+
> |Filename: Properties.JPG |
> |Download: http://vista64.net/forums/attachment.php?attachmentid=3229|
> +-------------------------------------------------------------------+
>
> --
> DougFarmer123



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-27-2008
DougFarmer123
 

Posts: n/a
Re: Error in Printing using "Print To File" and RAW Print mode

Hi Alan,

I enabled informational messages as you suggested, cleared the
Application Events, System Events and Security Events and made sure the
queue was clear. When I run the application, I still get the error, but
there is nothing in the event log (except the event that says I cleared
the event log). I also checked the Applications and Services logs, and
no messages their either.

As for where the printer writes the file, that is prompted for at run
time. Every time you send a file to the printer (in non RAW mode), a
dialog box pops up and asks for the file name. You can enter the entire
path.

I do not get that far, no dialog box pops up.

If you use the web interface for the forum, you will be able to get the
attachments (if you want to look).

Again, thanks for the ongoing conversation!

Doug


--
DougFarmer123
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer appears in "Printers" window, but not in File > Print dropdown list Charles Blaquière microsoft.public.windows.vista.print fax scan 3 01-30-2008 16:42
only partial pages print, print job in "error" state bheiser microsoft.public.windows.vista.print fax scan 5 01-14-2008 23:01
Article ID: 928905 Error message when you try to install a shared "Web Point and Print" printer in Windows Vista: "The process cannot access the file because it is being used by another process" KBArticles English 0 10-22-2007 20:00
Article ID: 937322 Stop error message when you run the "Common Scenario Stress with IO" test, print to a shared printer on the network, or perform a power management operation on a Windows Vista-based computer: "Stop 0x0000009F" KBArticles English 0 10-22-2007 20:00
Article ID: 937697 Error message when you try to install a shared printer in Windows Vista: "Windows cannot connect to the printer" or "The specified Print Monitor is unknown" KBArticles English 0 10-22-2007 20:00




All times are GMT +1. The time now is 04:30.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com and Win7Heads.com.


Funny Commercials to make you laugh :-)

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119