Transfer of secretory proteins through the membrane of the endoplasmic reticulum.