Hello,
The application I am working on allows the user to select a graphic file and display its content on the FlexPendant. It works perfectly onthe virtual controller, but on the real controller the image is not shown. The relevant piece of code is:
private void menuitemLoadImage_Click(object sender, EventArgs e)
{
this.fileDialog = new GTPUOpenFileDialog();
this.fileDialog.InitialDirectory = ((TpsViewPressWareWIZARD)this.Parent).MyController.FileSystem.RemoteDirectory + “/PressWare/Images”;
this.fileDialog.Filter = “.bmp|.bmp|.gif|.gif|.jpg|.jpg|.png|.png”;
this.fileDialog.FilterIndex = 1;
this.fileDialog.Closing += new CancelEventHandler(fileDialog_Closing);
this.fileDialog.Closed += new EventHandler(fileDialog_Closed);
this.fileDialog.ShowMe(this);
}
private void fileDialog_Closed(object sender, EventArgs e)
{
if (this.fileDialog.DialogResult == System.Windows.Forms.DialogResult.OK)
{
this.pbxPartImage.Image = new Bitmap(this.fileDialog.FileName);
}
this.fileDialog.Dispose();
}
I suspect the problem has to do with the path of the file, that for some reason, is not recognized properly in the RC.
Can anyone give me a clue on how to overcome this issue?
Thanks in advance.
(Additional info: RW 5.06.0158, FP SDK 5.06.0095)