Fix failure in multipages exporting
Add testcases using Visio