As the manual notes the following triggers are not to be used in the QlikView Server environment, since they lack meaning or may cause unexpected results:
OnOpen
OnPostReduceData
OnPostReload
This being the case how can you have a macro run when a qlikview is opened through qlikview server?
Also posted at the Qlikview Community http://www.qlikcommunity.com/575/?tx_mmforum_pi1[action]=list_post&tx_mmforum_pi1[tid]=2394&tx_mmforum_pi1[fid]=9