Free Support Forum - aspose.com

Generation SVG barcode saves only half a file and then throws an exception in C++ lib

Hi

SVG does not work in C++ lib.

try
{
// Save the Barcode image in SVG format
generator->Save(dataDir + u"Code128-barcode_out.svg", BarCodeImageFormat::Svg);
}
catch (const std::exception& e)
{
logEvent(EID_ERROR, L"CreateAndManageTwoDBarcodes error: %1. The %2 barcode type.", L"Code128", StringHelp::latin1ToUcs2(e.what()));
}

Throws exception;
CreateAndManageTwoDBarcodes error: System::ArgumentException: ns.

I can generate ALL other formats (except EMF which is missing, and really the format I need).

Here is the half SVG saved;
Code128-barcode_out.zip (333 Bytes)

/Jacob

@bleze,
Could you please share your runnable sample project that can be compiled and executed here to reproduce this scenario here? It will help us to observe the issue and share our feedback accordingly.

svgissue.zip (5.1 KB)

@bleze,
We have observed the issue and logged it in our database for further investigation. You will be notified here once any update is ready for sharing.

This issue is logged as:

BARCODECPP-451 - ArgumentException on saving SVG file

@bleze
Fix for SVG issue will be included in upcoming release. We plan to issue the release this week.

@bleze,

Please try our latest Aspose.BarCode for C++ v21.4:
Nuget repos. / Downloads section.

Your issue (logged earlier as “BARCODECPP-451”) should be fixed in it.

Thanks for quick fix! We will validate and get back if it still does not work.

Side note: Could you please write version number to the DLL’s published to nuget?

@bleze,

We do not add version number to the title text for C++ Dlls. You may check it using code or in VS.NET.

You do for aspose_cpp_vc14x64d.dll, so this is a request for Aspose.BarCode.Cpp_vc14x64d.dll aswell :slight_smile:

I cannot do it in code or .NET. The about box is not loading all libraries but querying DLL’s of libs.

@bleze,

Could you share your desired name format for the libraries in “\lib” folder, we can check it.

Name does not matter. Talking about properties for file;

image.png (11.6 KB)

@bleze,

We have logged a ticket with an id “” for your requirements. We will look into it soon. The ticket is logged as following:
BARCODECPP-455 - Add version details against “File version” for Properties of Aspose.BarCode for C++ Dlls.

Once we have an update on it, we will let you know here.