That depends if you used items and not ability to capture foes.
But here is what i know about exp gain.
You gain exp by working on areas that generate research or gold.
You gain exp by killing invaders in combat.
For captureing enemies, im very sure that you wont get exp if you use items but by using ability Capture.
But if you can confirm that you used Capture cards instead of items to capture invaders, then its probably only possible with only by killing invaders.