Simplicty and flexibility!


DataEase 8.5 and Define Application Printers


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

DataEase 8.5 and Define Application Printers

Hi,

I noticed something while I was installing full and group versions on the same network. Here is the scenario;

Installed DataEaseBeta-8.5.0.1910 on one machine. Setup all the necessary printers. Assigned printer 1 and printer 2 via define application printers.

Then went to second machine and installed DataEaseGroup-8.5.0.1831. Setup all the same printers as before. Then try to print some report using printer 1. But, it showed me printer setup error. So, I installed the DataEaseBeta-8.5.0.1910 and open the application on this 2nd machine to see what printers are in define application printers. But, interestingly those fields are blank.

What am I doing wrong here? Do I have to install full version on each machine to setup define application printers?


Written by Jeyarajah Arulrajah 21/09/15 at 16:34:35 Dataease [{8}]FIVE

Re:DataEase 8.5 and Define Application Printers

1. There is no reason why Application Printers should be greyed out in Group. This is most likely down to the fact that there was no group when this feature was implemented so it fell under the "general" exclusion for Runtime.

2. It is not a "good" thing to tell the user to set this up anyway, so you can do this "automatically" in 8.5. We have implemented: GetCurrent("@PrinterN") which will return the name of that printer for the current workstation.

If the result is blank or "not the correct printer", you can simply set it with SetState("@PrinterN","PrinterName")

http://www.dataease.com/dg3_HelpView/?PageID=10314...

http://www.dataease.com/dg3_HelpView/?PageID=10325...


3. This setting is a section in the RDRRxAAA.INI file i.e. the Application Settings which can be edited in Notepad. You can simply add a section for each workstation manually if  you so wish.

PrintFileName=

StyleName=Default

[DATAEASE64]

PredefinedPrinter_1=

PredefinedPrinter_2=

PredefinedPrinter_3=

PredefinedPrinter_4=

[SYSTEMFUNCTIONS]

SystemFunctionsLoaded=1

[SPEEDO32]

PredefinedPrinter_1=Print as a PDF

PredefinedPrinter_2=HP LaserJet 4050 Series PCL6

PredefinedPrinter_3=HP Color LaserJet 4700 PCL6 Class Driver

PredefinedPrinter_4=Adobe PDF


Written by DataEase 21/09/15 at 17:42:33 Dataease [{8}]FIVE

Re:Re:DataEase 8.5 and Define Application Printers

Actually, I completely forgotten about this.

This function is beautiful SetState("@PrinterN","PrinterName")

I can use this via DQL and do ANYTHING :-)

Thank you!


Written by Jeyarajah Arulrajah 21/09/15 at 22:49:56 Dataease [{8}]FIVE

Re:Re:Re:DataEase 8.5 and Define Application Printers

Remember that you can use GetCurrent("@DefaultPrinter") and SetState("@DefaultPrinter","PrinterName") too.

This will read and set the default printer on your system so all reports without a dedicated printer will print correctly.

If you want to reset the DefaultPrinter after, simply keep it in a global Variable.
define "Retval" text .
retval:=SetVar("OldDefaultPrinter",GetCurrent("@DefaultPrinter")) 
retval := SetState("@DefaultPrinter","NewPrinterName") .
do your business...
retval := SetState("@DefaultPrinter",GetVar("OldDefaultPrinter")) .


Written by DataEase 22/09/15 at 14:21:06 Dataease [{8}]FIVE

Re:Re:Re:Re:DataEase 8.5 and Define Application Printers

Just had the same issue and found it to be the PC Netbios name being exactly 15 characters. If the name of the PC is shortened, DataEase can correctly read and write sections into the RDR INI file to save appropriate Application Printer names. If the PC name is 15 chars, the names are blank when you next sign in.


Written by Simon Irwin 28/04/16 at 14:43:06 Dataease [{8}]FIVE

Re:Re:Re:Re:Re:DataEase 8.5 and Define Application Printers

Thanks Simon. I did test this today with one of my client.
Changing the computer name from 16 characters to something small ......magic. Printer name stayed.

Is this Simon from the U.K? Ex-Sapphire?


Written by Jeyarajah Arulrajah 04/05/16 at 23:47:30 Dataease [{8}]FIVE

Re:Re:DataEase 8.5 and Define Application Printers

I added for my other PC the below address to define the printers on the second machine in the RDRR ini file but am I missing something as it doesn' define the printers on the second machine ??

[DATAEASE64]

PredefinedPrinter_1=

PredefinedPrinter_2=

PredefinedPrinter_3=

PredefinedPrinter_4=

[SYSTEMFUNCTIONS]

SystemFunctionsLoaded=1

[DESKTOP-CDR18]

PredefinedPrinter_1=Bullzip PDF

PredefinedPrinter_2=Brother HL-2200

PredefinedPrinter_3=BIXOLON SRP-350II

PredefinedPrinter_4=Brother Label350


Written by brent traynor 30/11/17 at 00:13:25 Dataease [{8}]FIVE

Re:Re:Re:DataEase 8.5 and Define Application Printers

There is one setting in RDRRxAAA.INI for each workstation that use the app.

Application/Workstation printers was one of the earliest new things in DataEase 8 and has been expanded and added to since.

It can be set via the Dialog in the File Menu, manually edit in the RDRRxAAA.INI file (nor recommended) or via SetCurrent().

SetCurrent("@DefaultPrinter","Printername")

Set the default printer to the given name: SetCurrent("@DefaultPrinter","Hp Laserjet 4500")

Returns Success/Fail

SetCurrent("@PrinterN","Printername")

Set Workstation Printer N to the given value. SetCurrent("@Printer4","Hp Laserjet 4500") will set the workstation printer for active application/workstation to new value. Permanent!

Returns Success/Fail

You can also read what printers are set for the current workstation with.

GetCurrnet("@DefaultPrinter")

Will return the current active default printer by name on your workstation. GetCurrent("@DefaultPrinter")

GetCurrent("@PrinterN )


So you can first check if the correct printer is set and if not you can set it.

You can store the correct printers in the database rather than have to manually edit the RDRRxAAA.INI file on each workstation.


Written by DataEase 30/11/17 at 11:05:16 Dataease [{8}]FIVE
DG3_ForumList