Question

8
Replies
2239
Views
Close popover
Wood Yang (WoodYang)
Flextronics Technology Co Ltd

Flextronics Technology Co Ltd
CN
WoodYang Member since 2017 12 posts
Flextronics Technology Co Ltd
Posted: December 30, 2017
Last activity: January 9, 2018
Closed
Solved

C# Script to get Excel Range value

Happy new year, everyone!

below is the code in Visual studio

Rng = (Excel.Range)sht.Cells[2, Column];
                Excel.Range Rng2 = Rng.get_Resize(maxrow - 1, 1);
                
                //content=Rng2.Value2;
                for (int i = 0; i < maxrow - 1; i++)
                {
                    
                    content[i,0] = Rng2[i + 1].Value();
                }

It runs well in Microsoft Visual Studio,

But once i copy it to Pega robotics studio C# script component,

It shows as attached screen shot, kindly help.

The code is same with Microsoft visual studio.

Robotic Process Automation
Moderation Team has archived post