Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

in one system its running well some other system it showing error why

$
0
0
I have a program which do total process in Excel using VS2010. In the last, the output format I have changed as pdf from Excel using exportasfixedformat. In both places same versions of Excel and Windows.

It works well in the my computer, but not in my office computer. It showing following error at the following statement:

oWs.ExportAsFixedFormat( _
Excel.XlFixedFormatType.xlTypePDF, _
fpath & "\" & "12345.pdf", _
Excel.XlFixedFormatQuality.xlQualityStandard, _
True, _
True, _
1, _
10, _
False)

Error is:

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

What went wrong?

gvg

Viewing all articles
Browse latest Browse all 27189

Trending Articles