Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Up to 100,000 records can be processed with the freeware version!
Flowheater Chart

Excel Adapter Filename

More
11 years 4 months ago #2287 by Heinz
Hi there,

I am using the following script to get the read (input) filename:

public object DoWork()
{
// get access to the READ TextFile Adapter
TextFileAdapter adapter = (TextFileAdapter)AdapterRead;

// return the filename for further processing
return Path.GetFileName(adapter.Filename);
}

It works for TextFileAdapters, for ExcelAdapter, I cast to the ExcelAdapter, but I then get an error that the "Filename" property is not available on the ExcelAdapter.

Is there a different propertyname?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #2288 by FlowHeater-Team
Replied by FlowHeater-Team on topic Re:Excel Adapter Filename - Post(2288)
hi heinz,

yes, the excel adapter uses a different property name for this. you have to use "workbook" instead of "filename".

you can find out the valid property names by using the adapter property view in the designer . please have a look to the attachment.


Best wishes
Robert Stark

Please Log in or Create an account to join the conversation.

Time to create page: 0.260 seconds
FlowHeater Logo

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Legal information

Support & Contact

Contact

Phone:
0951 / 9933 9792

eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.


Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.