Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Print to Novell queue

Posted on 1997-09-08
4
Medium Priority
?
261 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 750 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

721 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