Save histogram without drawing

Dear ROOTers,
Is there any option of save histograms without drawing them? I my code I must plot some TCanvas with one histograms so I can’t use -b option for saving other histograms,
Cheers.

You can turn on the batch mode in a macro with:

gROOT->SetBatch(kTRUE);

of course it all depends what you mean by “save histograms”…

Thank you.
It’s works.