ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Saving TIEMultiBitmap to IOMSCWPPDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Jul 01 2017 :  14:44:12  Show Profile  Reply
if not AIEMultiBitmap.Write(iFilePath, iomscWPPDF) then
[dcc64 Error] Unit1.pas(2072): E2250 There is no overloaded version of 'Write' that can be called with these arguments?

How to save TIEMultiBitmap to WPPDF file?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development

xequte

38194 Posts

Posted - Jul 02 2017 :  23:38:45  Show Profile  Reply
Hi Bill

If you call:

IEMultiBitmap.Write( 'D:\File.pdf' ) and WPPDF is registered, then it will default to iomscWPPDF format.

Otherwise, download the latest version from Git. I have added File Format as a parameter.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 03 2017 :  10:13:06  Show Profile  Reply
Nigel,

Thanks, but attached is a small demo that fails to save pdf files with a TIEMultiBitmap. I can save tiff and ico with no problem, but pdf will not save with ImageEnVersion 7.0.

attach/w2m/201773101218_IEMultiBitmap.zip
58.68 KB

Is there a problem?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38194 Posts

Posted - Jul 06 2017 :  19:19:08  Show Profile  Reply
Hi Bill

It saves correctly for me with your demo. Are you using the latest source from Git?

What is the error that you encounter?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 07 2017 :  10:33:57  Show Profile  Reply
Hi Nigel,

I managed to get logged into Git and recompiled the demo with the latest Git update and it now saves correctly with Win32, but it still fails with Win64. Did you change wpcubed_pdf_plugin.pas?

With Win64 it fails here: if not AIEMultiBitmap.Write(iFileName) then
The result is False.

I have ielib64.dll, wp_type1ttf.dll, wp_type1ttf64.dll, wPDFViewDemo04.dll, wPDFViewMKIMG04.dll and wPDFViewMKIMG04x64.dll in the exe folder.

This is difficult to understand because a Win64 app with TImageENMView does not produce and IO error when saving a pdf file even though the same dlls are used.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 10 2017 :  08:51:45  Show Profile  Reply
Please reply. Can the demo be compiled with Win64 and save pdf without error?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38194 Posts

Posted - Jul 11 2017 :  22:48:22  Show Profile  Reply
Sorry Bill,

I missed your response.

I've just tested under 64bit and did not encounter an error. wpcubed_pdf_plugin.pas is now included with the ImageEn source, so ensure you delete any other versions that are on your compilation path.

Also, ensure that you also updated the source in the folder used for 64bit Delphi compilation.

Failing that, you might want to step into the ImageEn code to see where it is failing.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: