Hello again!
After a year I keep trying to add a thumbnail in a form bound to the table "Record Link". The idea is to add an embedded control that passes through a register (a link example x: \ com \ document1.pdf) shows the preview of the file such as Windows XP or IrfanView shown in thumbnail view, irrespective of the extent of file (bmp, jpg, pdf, etc).
I tried to add objects OCX, Automation, etc, and I searched many forums but have not found anything. Could someone help me or give me an answer?. (Kamil, etc)
Thank you very much
0
Comments
Thanks
Regards,
To extract the Thumbnail from the files take a look at the IExtractImage Interface.
Let me know if you need further help
Visit My Blog at
http://extremeengineers.net/
The idea sounds very good, but I am newbie. NET and I have no idea how to create the component that allows me to do this.
Once you have created should be recorded as automation? and then pass the parameters of the path in the OnAfterGetRecord to display on your Form.
We welcome you to tell me step by step if not too much to ask a developer.
Thank you very much for your attention,
Best regards
Creating a .NET assembly is preety simple, you just have to create a new class library project in Visual Studio. Sign it with a strong name
Create the required functions. add a Setup Project to your current solution so that you can save the hassle of registering the assembly manually.
Once the setup is created you run it to get the class library registered in the GAC.
Next you are ready to use the Functions in your assembly within nav by using it as a automations.
I would love to give you a sample project for your purpose, if you have until this weekends. Weekdays are pretty hectic for me. So Let me know if that works for you.
For the mean time, here are a few links that you'd find usefull.
Creating a Class Library (DLL)
Creating a Setup Project
Visit My Blog at
http://extremeengineers.net/
I'm checking the links you sent me, but I'm too slow :oops: ](*,)
For your information I have Visual Studio 2010 and Visual Studio C # 2008 Express.
Greetings and thanks
as promised here's the code to implement IExtractImage interface. You just copy this code and paste it into a new class in your Class Library Project and use the GetThumnail Function to get the BMP image of the file.
Hope This Helps
Visit My Blog at
http://extremeengineers.net/
First I want to thank the effort and patience you have with a novice (me) in Visual C #. I tried to make the class (dll) in Visual C # (2008 Express and 2010), as the links you sent me but when you compile the project I get the following errors:
Error 1 The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?
Could you tell me the problem?
Thank you very much for your attention and patience
PS: The error is the same in Visual C # 2008 and Visual C # 2010
I've managed to add the reference, which was looking for the error error CS0234: The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?) By adding the reference System . Drawing.
I created the complete solution, and now try to generate the setup to register the key, which is the fastest way?.
I tried to make an installation wizard, but do not know if this is the right way.
Thank you very much
well creating the setup is a pretty simple process, you just have to add a setup project in your solution, add the primary output of your mail project in the correct and desired location in the Filesystem manager. Add the custom actions, and that is about it. You are good to go.
If your "way" includes these steps, you could bet its right.
Glad that I could help, you are welcome.
Visit My Blog at
http://extremeengineers.net/
Perform the setup and installation, but can not find in Navision how to reference the dll, I image (2 files with two testing facilities).
As a reference and as a call to the DLL (not seen in Automation)
Thank you very much [-o<
I still can continue with the installation and reference of the dll in Navision. Could you send a private mail so you can see where I'm wrong?.
Waiting for your news,
Best regards
Thanks
if not, run cmd and type the following:
regsvr32 “C:\Archivos de programa\thumbnailextractor\Thumbnailextractor3.dll”
|To-Increase|
When the installation is created, it automatically registers the dll?
Still, it shows me this error ... something I'm doing wrong and what is not ](*,)
error:
ThumbnailExtractor3.dll was unloaded but not found the DLL entry point registerserver. Unable to register this file
Thanks for your reply
Regards,
have somebody create successfully the dll file?
I can’t see the properties and functions in NAV.
Somebody an idea or a dll that works?
Yours sincerely
It seems that no one was able to record or generate the dll correctly.
I'm a newbie. NET and I followed the instructions Ultramayank, but still can not register the dll or use in Navision.
If anyone is encouraged ... [-o<
Regards,
Can someone help me please. I registered the dll and that's ok. Now the problem is when I try to access the automation to use it in my form, I don't see any classes to be used