Home > database >  In the menu, save and print dw_1 script command how to write?
In the menu, save and print dw_1 script command how to write?

Time:10-01

How do you write in the menu to save dw_1 script commands?
In the menu to print dw_1 script command how to write?
Thank you very much!

CodePudding user response:

Window. Dw_1. Print ()

CodePudding user response:

Tried, error!
Use dw_1. Print () is also not line!
Thank you very much!

CodePudding user response:

You will divide the clear status
Save there are two ways, one is dw_1. Update, you can remove the dw_1 elements, using SQL insert table,
Print: you said dw_1. Print () is not what is not, no data or an error? Did not data before you print dw_1 retrieve, wrong to write the wrong clearly, a simple "no."
Who knows what you problem

CodePudding user response:

May be the printer didn't set, doubt

CodePudding user response:

Save:

Dw_1. The update ()
commit;

CodePudding user response:

Window. Dw_1. The update ()
commit;

The window name. Dw_1. Print ()

CodePudding user response:

Custom window two events to handle, in the event window handle yourself do?
These two events named
Ue_save
Ue_print
Menu write
//save:
Parentwidow. Dynamic event ue_save ()
//print:
Parentwidow. Dynamic event ue_print ()

CodePudding user response:

In addition, despise the 0

CodePudding user response:

The sixth floor right

CodePudding user response:

Long ls_ret, ret
If printsetup ()=1 then
Return
End the if

Ls_ret=printopen ()

Ret=printdatawindow (ls_ret dw_1)
If ret=1 then
PrintClose (ls_ret)
Close (the parent)
The else
Messagebox (" ", "printing failed, please check!" )
Return
End the if

CodePudding user response:

If dw_1. The update ()=1 then
commit;
The else
The rollback.
End the if

Dw_1. Print ()
  • Related