Hi Fadi Aqeel
For suppose u had assigned the below mentioned query in the crystal report.
IN crystal report create parameter as DocKey@
if u press print now it will automatically takes take current docnum from the screen without assigning the parameter
SELECT T0.[CardCode], T0.[CardName], T0.[DocTotal] FROM OQUT T0 where Dockentry={DocKey@}
Hope Helpful
Regards
Kennedy