how to open html in a new window using C#? - InfoPath Dev
in

InfoPath Dev

how to open html in a new window using C#?

Last post 03-26-2010 08:12 AM by golden_shiner. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-26-2010 08:12 AM

    how to open html in a new window using C#?

    hello,
    I have a c# application which after clicking a button in infopath form, creates an HTML file. I would like to open this page in a NEW window, instead of what is actually doing, opening  under a new tab. Any help will be greatly appreciated.
    <code>
    fileName = ("Warningfile " + PHYS_MSTR_water_body_id.ToString() + " " + PHYS_MSTR_event_date.ToString() + " " + time_collected_hh.ToString() + " " + time_collected_minutes.ToString() + " " + PHYS_LOC_grid.ToString() + ".html");
    FileStream outputfile = null; path = "Warningfile " + PHYS_MSTR_water_body_id.ToString() + " " + PHYS_MSTR_event_date.ToString() + " " + time_collected_hh.ToString() + " " + time_collected_minutes.ToString() + " " + PHYS_LOC_grid.ToString() + ".html";
    try
    {
    outputfile = new FileStream(fileName, FileMode.Create, FileAccess.Write);
    writer = new StreamWriter(outputfile);
    writer.BaseStream.Seek(0, SeekOrigin.End);
    DoWrite("<a><target='_blank'></a>");
    DoWrite("<HTML>");
    DoWrite("<HEAD>");
    DoWrite("<TITLE>");...</code>

    Filed under: , ,
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.