Image not displaying

 I included images in my syncfusion word document. There are watermark, footer, and logo images.(string ImagePath = System.IO.Path.Combine (Application.StartupPath + "\\Resources\\ARKChem Logo (1).jpg");)

I utilized this path in my project.When I upload my executable to another machine, I get an error.

The path is not of a legal from.code.png


3 Replies

SB Sneha Biju Syncfusion Team April 2, 2024 12:04 PM UTC

Hi Pushkarj,

Based on the details provided, it appears that your requirement is to use the .exe file from a bin folder of a WinForms sample created on one machine on another machine. In order to run the .exe file of the sample in a different location, it is necessary to have the corresponding DLLs and resources, such as image files, that are provided with the sample, on the different location along with the .exe file. Therefore, to resolve the reported issue, we suggest you share the Resource folder from the sample along with the .exe file to the other machine.

If we have misunderstood your requirement, please provide us with complete details about the end goal and purpose. This will allow us to analyze the situation further and provide a suitable solution as soon as possible.

Regards,
Sneha.



PG Pushkarj Gajanan Natu replied to Sneha Biju April 2, 2024 12:53 PM UTC

I have already tried the solution that you have mentioned in the above.But it still gives me the error.Can you tell me the different solution.



SB Sneha Biju Syncfusion Team April 3, 2024 06:45 AM UTC

Pushkarj, we have attached the sample (Add-picture-in-Word-document.zip) that we tested at our end, and it is working fine as mentioned in the previous update. You can also find the Debug folder (Debug.zip) where the .exe file, along with the DLLs and resource folders, are present. We have also tried running the .exe file in different locations and on another machine, and it is working fine at our end. You can also run the .exe file present in the provided folder (Debug.zip).

Could you please share the reproducible sample of the issue and a video illustration of the problem you are facing on your side? This will allow us to analyze further and provide you with an appropriate solution as soon as possible.


Attachment: Attachments_104e181e.zip

Loader.
Up arrow icon