  We have refined a model for charm fragmentation at hadron colliders. This
model can also be applied to the photoproduction of charm. We investigate the
effect of fragmentation on the distribution of produced charm quarks. The drag
effect is seen to produce charm hadrons that are shifted in rapidity in the
direction of the beam remnant. We also study the importance of different
production mechanisms such as charm in the photon and from parton showers.
