Easy to Create, Easy to Change - Easy to use!


Predefined printers on RDRRxAAA for all the users


Started by Marco Marchesi
Search
You will need to Sign In to be able to add or comment on the forum!

Predefined printers on RDRRxAAA for all the users

In the RDRRxAAA.ini there's a section for the predefined printers but I have to add a section for each client in the network.
There is a way to setup the same printer configuration for all the user in the network?
In the example below the configuration works only for the workstation WS-101494 but the other users obviously receive the message "Printer setup error"

[WS-101494]
PredefinedPrinter_1=PRITROM001
PredefinedPrinter_2=PDFCreator
PredefinedPrinter_3=PDFFactory
PredefinedPrinter_4=

I know that I can use (for example)

SetCurrent("@Printer3","Hp LaserJet 4700") -- Will set The workstation printer 3 to HP LaserJet 4700

to setup the printers but it's more convenient setup the same printer in the ini file for all the users of the DE application and not at application level .

Written by Marco Marchesi 15/02/16 at 13:41:49 Dataease [{8}]FIVE

Re:Predefined printers on RDRRxAAA for all the users

This is very much close to the first feature added to the DE8.0 project and I guess that it was such a big step forwards at the time that it was left as it is (except for the GetCurrent()/SetCurrent() feature.

As this is very much featured on the DFD Workstation Printer it should in hindsight have included a "default" setting for the application, and if memory don't fail me the reason it doesn't is simply because of GUI restrictions at the time.

The GUI of DFW has always been a big restriction on new features because is is so hard to manage so we and the ones before us has been very reluctant in adding to it or changing it.

In 8.5 we have concentrated on moving functionality out of the GUI and into DataEase so we can build the GUI in DataEase which will give US and you much more flexibility.

One of the latest features we are working on is Remote Documents (we already have remote tables etc) which would mean that you could store default features in a remote form or a remote table and look it up if the user doesn't have the settings already.

Our suggestion here is simply to manage this in the application rather than relying on us:

Create a Printer Table and save the default settings there, then you simply set the printers on startup with SetCurrent("@Printer etc if they either aren't set (GetCurrent(@printer etc return blank) or you can just do it all the time to reflect changes etc.

You can of course also make a more advanced printer management system so pritners follow the user whatever workstation he works on.


This is a very good example on how much better it is to make functionality available to the programmers rather than keeping it exclusive to our developers as part of a GUI.

Written by DataEase 15/02/16 at 13:58:31 Dataease [{8}]FIVE

Re:Re:Predefined printers on RDRRxAAA for all the users

Thanks. anyway I tried to use "setcurrent" but it seems to me that it doesn't works. I tried also in a DQL. I use DE 8.2. There's something wrong? (see figure)

Anyway "Getcurrent" return to me Blank even if the printer is inserted into the ini file.

Written by Marco Marchesi 15/02/16 at 14:55:42 Dataease [{8}]FIVE

Re:Re:Re:Predefined printers on RDRRxAAA for all the users

Sorry, Set/Get Application printers was first introduced in early 8.5 and then it was expanded to SetCurrent() when this function was introduced late in 8.5

http://www.dataease.com/DG3_BlogList/?ParentID=000...

http://www.dataease.com/DG3_BlogList/?ParentID=000...

Written by DataEase 15/02/16 at 16:32:40 Dataease [{8}]FIVE