If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > Printing to UNC Printers in Paradox 4.5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-03, 17:08
KennyB KennyB is offline
Registered User
 
Join Date: Jul 2003
Posts: 1
Question Printing to UNC Printers in Paradox 4.5

Hello fellow DBers,

I haven't played with Paradox 4.5 in years but I have some clients that have upgraded their networks and PCs and are forceing the issue of UNC printer path names.

I'm aware on how to use LPT mapping to print to UNC printer names, but I have more than 15 printers that need to be printed to and as far as I know, there's only 3 LPT ports that you can map. My code will look at certain field values and determine which one to print to and generate code to pass to a RUN command. My problems occur when I shell out with the "RUN" command and try to copy a text file (already generated) to a UNC path name. I get no errors, but it's not working.

Here's an example:

runcmd = "copy c:\\privdir\\report.txt \"\\\\servername\\share name\""
RUN NOREFRESH runcmd

It appears to parse correctly by viewing the runcmd variable, but is not working....

ANY IDEAS????

Thanks

Kenny Boggs
Reply With Quote
  #2 (permalink)  
Old 08-27-03, 16:05
Shores Shores is offline
Registered User
 
Join Date: Aug 2003
Location: Bologna - Italy
Posts: 209
Two things come to my mind:

1)If you're using an NT series of windows, i'quite sure you can have many more LPTx than 3, so it may solve your problem.

2)If you're running a text-only report, as it seems, i'd use calls to the windows API to create the print job by calling them, and then passing the file; or if you need it, there's a nice command line tool called RawPrint on the MS site, which works by sending to the desired printer a file.

In all these responses i presume you're running in a dos box under windows, if you're not, sorry, but i don't have any advice.

__________________
The only failure is not trying to do it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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