Solved

Print to Novell queue

Posted on 1997-09-08
4
259 Views
Last Modified: 2013-12-03
In a 16-bit program (Borland C) I need to print to a Novell printer queue. The program runs on a Windows NT 4.0 workstation, LPT1: is connected to the right Novell queue, but when trying to print to LPT1: (!!!using the Windows communication API functions (OpenComm, etc.) !!!) this results in an error when calling BuildCommDCB().
(How) can I print to a (Novell) print queue from within my 16-bit Windows application ?
0
Comment
Question by:parlando
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:parlando
ID: 1406127
Adjusted points to 250
0
 
LVL 3

Accepted Solution

by:
vinniew earned 250 total points
ID: 1406128
The Windows API functions are too low level to let the NetWare redirector work.  You may as well create a text file and do a WinExec to "print".

V

0
 

Author Comment

by:parlando
ID: 1406129
I already was afraid that the answer might be something like that, but since you're the only person that has answered the question, and it's always good to see your thoughts confirmed,
your reaction shall be rewarded.

Marc
0
 
LVL 3

Expert Comment

by:vinniew
ID: 1406130
I used to know the NetWare SDK reasonably well.  You could always make things more complex and try to use the NetWare 16-bit DLL's and WNet... MS API calls to find, attach, and command a NetWare printer object.

Then again, why stop there?  Why not write your own printer driver using NCP calls?  That only takes 3000 man-hours :)

Really, though, the simple solution is usually the best.  This isn't going to be commercial software anyway, right?

V
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question