Pessoal, estou com um problema. estou usando o itextsharp para gerar uns relatórios em pdf. tudo funcionava muito bem (pra variar) enquanto eu estava rodando na maquina de desenvolvimento via vs2010. quando gero o exe e faço a instalação tanto na maq de
desenvolvimento quanto em uma maquina de teste. a logo da empresa que esta no como PNG no cabeçalho do itext gera esse erro ai abaixo.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\sitHe\Estoque.pdf'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath,
Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at HEL.Frm_Estoque.CriarPf()
at HEL.Frm_Estoque.BtnImprimir_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
insiro a logo com o cod abaixo.
iTextSharp.text.Image PNG = iTextSharp.text.Image.GetInstance("helestoque1.PNG");
PNG.ScalePercent(30f);
doc.Add(PNG);
Já tentei desabilitar o JIT no visual studio mas obtive o mesmo erro.
Se alguém puder me ajudar desde já fico agradecido.