Question

8
Replies
2160
Views
WoodYang Member since 2017 12 posts
Flextronics Technology Co Ltd
Posted: 2 years ago
Last activity: 2 years 8 months ago
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
Share this page LinkedIn