private void button设置参数_Click(object sender, EventArgs e)
        {
            CodePara codepara = new CodePara();
            codepara.SetIniFilePath(this.textBoxINI.Text);
            codepara.ShowDialog();
        }        public bool MakeTextBarCode(string strInfo, string inifile, string outfile)
        {
            IntPtr szInfo = (IntPtr)Marshal.StringToHGlobalAnsi(strInfo);
            IntPtr szIniPath = (IntPtr)Marshal.StringToHGlobalAnsi(inifile);
            IntPtr szOutPath = (IntPtr)Marshal.StringToHGlobalAnsi(outfile);
            //生成条码
            string bmpfile = "";
            //PDF
            SetPdfConFile(szIniPath);
            bmpfile = EnPdfText(szInfo, szOutPath);            if (bmpfile.Length < 1) return false;
            return true;
        }        

 
 

 
					
				
评论